- add LT_LDFLAGS to all libtool links. Remove -no-undefined.

This commit is contained in:
Bryce Denney 2002-10-11 17:03:50 +00:00
parent 5b535b7e83
commit 48540356e8

View File

@ -1,20 +1,22 @@
CXX=g++
CXX=c++
CXXFLAGS=-Wall -g
LIBTOOL=libtool
LT_LDFLAGS=
#LT_LDFLAGS=-no-undefined
RPATH=`pwd`/lib
all: uselib
uselib: uselib.cc libmodule1.la libmodule2.la
$(LIBTOOL) $(CXX) $(CXXFLAGS) -o uselib uselib.cc libmodule1.la libmodule2.la
$(LIBTOOL) $(CXX) $(LT_LDFLAGS) $(CXXFLAGS) -o uselib uselib.cc libmodule1.la libmodule2.la
libmodule1.la: module1.lo libmodule2.la
$(LIBTOOL) $(CXX) -no-undefined -o libmodule1.la module1.lo -rpath ${RPATH} libmodule2.la
$(LIBTOOL) $(CXX) $(LT_LDFLAGS) -o libmodule1.la module1.lo -rpath ${RPATH} libmodule2.la
mkdir -p lib bin
$(LIBTOOL) cp libmodule1.la ${RPATH}
libmodule2.la: module2.lo
$(LIBTOOL) $(CXX) -no-undefined -o libmodule2.la module2.lo -rpath ${RPATH}
$(LIBTOOL) $(CXX) $(LT_LDFLAGS) -o libmodule2.la module2.lo -rpath ${RPATH}
mkdir -p lib bin
$(LIBTOOL) cp libmodule2.la ${RPATH}