On Mon, 2018-04-09 at 11:15 -0500, Yaakov Selkowitz wrote:

> True, if you need to preserve order you need to use -Wl, for each such
> argument, e.g.:
>   libdemo_la_LDFLAGS = -Xlinker --as-needed -Xlinker -lm -Xlinker
> --no-as-needed -lvirt
> or:
>   libdemo_la_LDFLAGS = -Wl,--as-needed,-lm,--no-as-needed -lvirt
> Failure to do so would qualify as "a poorly written Makefile.am".

Nothing in the libtool documentation mentions reordering linker
arguments, or using -Wl to prevent that. Blaming the makefile for not
using undocumented libtool features to work around libtool's own
misdesign is perhaps unwarranted.

- ajax
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org

Reply via email to