Ignore:
Timestamp:
Aug 10, 2010, 3:20:04 PM (11 years ago)
Author:
Peter Johansson
Message:

refs #467. Change how CPPFLAGS, CXXFLAGS and LDFLAGS are picked up
automagically in configure. First, save flag given by user. Second add
flags to e.g. LDFLAGS (based on --with-plplot etc) but add only values
not already in LDFLAGS. Third, calculate difference SVNDIGEST_LDFLAGS

LDFLAGS - LDFLAGS_init and restore LDFLAGS to LDFLAGS_init (given by

user). This implies we avoid multiple identical entries. For example,
before the linker could get 3 copies of '-L/opt/local/lib' because it
got one from APR_LDFLAGS, one from SVN_LDFLAGS, and one from
PLPLOT_LDFLAGS. It also means that if user gives ./configure -L/foo
-L/bar, configure will not add these paths into SVNDIGEST_LDFLAGS and
hence the user is in power of deciding the path order for the
linker/compiler.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.8-stable/test/Makefile.am

    r1119 r1159  
    6060  $(top_builddir)/yat/libyat.a \
    6161  $(SVN_LIBS) $(APR_LIBS) $(PLPLOT_LIBS)
    62 AM_LDFLAGS = $(APR_LDFLAGS) $(SVN_LDFLAGS) $(PLPLOT_LDFLAGS)
     62AM_LDFLAGS = $(SVNDIGEST_LDFLAGS)
    6363
    64 AM_CPPFLAGS = -I$(top_srcdir) $(APR_CPPFLAGS) $(SVN_CPPFLAGS) \
    65   $(DEFAULT_CPPFLAGS) $(PLPLOT_CPPFLAGS)
    66 AM_CXXFLAGS = $(DEFAULT_CXXFLAGS)
     64AM_CPPFLAGS = -I$(top_srcdir) $(SVNDIGEST_CPPFLAGS)
     65AM_CXXFLAGS = $(SVNDIGEST_CXXFLAGS)
    6766
    6867libsvndigesttest_a_SOURCES = Suite.cc
Note: See TracChangeset for help on using the changeset viewer.