+1999-03-25 Alexandre Oliva <oliva@dcc.unicamp.br>
+
+ * automake.in (LDADD): accept -dlopen and -dlpreopen here
+ * automake.texi: ditto
+
1999-03-25 Alexandre Oliva <oliva@dcc.unicamp.br>
* automake.in (TESTS): make from Solaris 7/x86 loses if srcdir
{
if ($var =~ /^(.*)LDADD$/)
{
+ # Skip -dlopen and -dlpreopen; these are explicitly allowed.
+ next if $lsearch =~ /^-dl(pre)?open$/;
&am_line_error ($var, "linker flags such as \`$lsearch' belong in \`${1}LDFLAGS");
}
else
@cindex _LDFLAGS, defined
@samp{@var{prog}_LDADD} is inappropriate for passing program-specific
-linker flags (except for @samp{-l} and @samp{-L}). So, use the
-@samp{@var{prog}_LDFLAGS} variable for this purpose.
+linker flags (except for @samp{-l}, @samp{-L}, @samp{-dlopen} and
+@samp{-dlpreopen}). So, use the @samp{@var{prog}_LDFLAGS} variable for
+this purpose.
@vindex _LDFLAGS
@cindex _DEPENDENCIES, defined
If @samp{@var{prog}_DEPENDENCIES} is not supplied, it is computed by
Automake. The automatically-assigned value is the contents of
@samp{@var{prog}_LDADD}, with most configure substitutions, @samp{-l},
-and @samp{-L} options removed. The configure substitutions that are
-left in are only @samp{@@LIBOBJS@@} and @samp{@@ALLOCA@@}; these are
-left because it is known that they will not cause an invalid value for
-@samp{@var{prog}_DEPENDENCIES} to be generated.
+@samp{-L}, @samp{-dlopen} and @samp{-dlpreopen} options removed. The
+configure substitutions that are left in are only @samp{@@LIBOBJS@@} and
+@samp{@@ALLOCA@@}; these are left because it is known that they will not
+cause an invalid value for @samp{@var{prog}_DEPENDENCIES} to be
+generated.
@node A Library, LIBOBJS, A Program, Programs