Re: Recommended way to pass CFLAGS/LDFLAGS through libtool

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux