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 <stenn@xxxxxxx> 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 <stenn@xxxxxxx> > http://networktimefoundation.org - be a member! > > _______________________________________________ > Autoconf mailing list > Autoconf@xxxxxxx > https://lists.gnu.org/mailman/listinfo/autoconf _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx https://lists.gnu.org/mailman/listinfo/autoconf