[tex-live] C++ hack submitted to source

Nelson H. F. Beebe beebe at math.utah.edu
Sat May 24 13:32:30 CEST 2003


Thomas Esser <te at dbs.uni-hannover.de> writes on Sat, 24 May 2003 20:03:32 +0200:

>> If I add the configure code, that will put all additional link flags 
>> to @CXXLDEXTRA at . How do I tell automake about these additional link flags.

Generally, at configure time, it is possible to supply startup values
of CFLAGS, CXXFLAGS, LIBS, and LDFLAGS that will propagate into
configure, and subsequently, the Makefile.  

For example, if you need a g++-specific flag on all platforms,
configure.in could have a test like this near the beginning, but after
the setting of the compiler name (so that GCC has been set or not):

test "$GCC" = "yes" && CXXFLAGS="-Wno-frobnitz $CXXFLAGS"

-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- Center for Scientific Computing       FAX: +1 801 581 4148                  -
- University of Utah                    Internet e-mail: beebe at math.utah.edu  -
- Department of Mathematics, 110 LCB        beebe at acm.org  beebe at computer.org -
- 155 S 1400 E RM 233                       beebe at ieee.org                    -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe  -
-------------------------------------------------------------------------------


More information about the tex-live mailing list