autoconf
[Top][All Lists]
Advanced

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

Re: LIBS


From: Zack Weinberg
Subject: Re: LIBS
Date: Fri, 19 Jul 2013 22:35:18 -0400

LDFLAGS=-Wl,--as-needed

and you're done. This really should be the default -- it corresponds
to the way static linkage works -- but there are probably too many
Makefiles out there expecting the opposite behavior to change it now.

On Fri, Jul 19, 2013 at 10:07 PM, Harlan Stenn <address@hidden> wrote:
> So for reasons that may or may not still be valid, I've had folks
> successfully lobby me to separate out libraries that are needed for all
> programs from libraries that are needed for certain programs.
>
> I believe the reasons for this have to do with the size of the
> executables - folks Noticed that linking with unnecessary libraries
> caused the resulting executables to be much bigger and sucked up memory,
> especially in embedded systems.
>
> But if I don't put all of the detected libraries in LIBS then things
> like AC_CHECK_FUNCS won't find them.
>
> Suggestions on good ways to proceed?
>
> --
> Harlan Stenn <address@hidden>
> http://networktimefoundation.org  - be a member!
>
> _______________________________________________
> Autoconf mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/autoconf



reply via email to

[Prev in Thread] Current Thread [Next in Thread]