automake
[Top][All Lists]
Advanced

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

Need a way to pass options to libtool


From: Bob Friesenhahn
Subject: Need a way to pass options to libtool
Date: Sun, 23 May 2004 15:20:35 -0500 (CDT)

Currently Automake Makefiles include text like:

LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) \
        $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
        $(AM_CXXFLAGS) $(CXXFLAGS)

Notice that there is no means provided to add libtool specific
options.  The only means available is for the user to cut-and-past
this chunk into their Makefile.am so that it overrides Automake's
default.  This has long term negative effects for Automake.

I recommend that Automake definitions which specify how libtool is
used include a place to add libtool options for that mode.  For
example

LTCXXCOMPILE = $(LIBTOOL) $(LTCXXCOMPILEOPTS) --mode=compile $(CXX) $(DEFS) \
        $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
        $(AM_CXXFLAGS) $(CXXFLAGS)

This way the user could specify a value for LTCXXCOMPILEOPTS and does
not need to replace the entire text.

Bob
======================================
Bob Friesenhahn
address@hidden
http://www.simplesystems.org/users/bfriesen





reply via email to

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