* Pass CFLAGS to the subpackages.
This commit is contained in:
parent
90e26d392c
commit
d2e3a132fe
12
externals/Makefile.am
vendored
12
externals/Makefile.am
vendored
|
@ -19,7 +19,8 @@ have-db:
|
||||||
build-db: have-db
|
build-db: have-db
|
||||||
(pfx=`pwd` && \
|
(pfx=`pwd` && \
|
||||||
cd $(DB)/build_unix && \
|
cd $(DB)/build_unix && \
|
||||||
CC=$(CC) CXX=$(CXX) ../dist/configure --prefix=$$pfx/inst \
|
CC="$(CC)" CXX="$(CXX)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" \
|
||||||
|
../dist/configure --prefix=$$pfx/inst \
|
||||||
--enable-cxx --disable-shared && \
|
--enable-cxx --disable-shared && \
|
||||||
make && \
|
make && \
|
||||||
make install)
|
make install)
|
||||||
|
@ -47,7 +48,8 @@ have-aterm:
|
||||||
build-aterm: have-aterm
|
build-aterm: have-aterm
|
||||||
(pfx=`pwd` && \
|
(pfx=`pwd` && \
|
||||||
cd $(ATERM) && \
|
cd $(ATERM) && \
|
||||||
./configure --prefix=$$pfx/inst && \
|
CC="$(CC)" ./configure --prefix=$$pfx/inst \
|
||||||
|
--with-cflags="-DNDEBUG -DXGC_VERBOSE -DXHASHPEM -DWITH_STATS $(CFLAGS)" && \
|
||||||
make && \
|
make && \
|
||||||
make install)
|
make install)
|
||||||
touch build-aterm
|
touch build-aterm
|
||||||
|
@ -74,7 +76,7 @@ have-sdf2:
|
||||||
build-sdf2: have-sdf2
|
build-sdf2: have-sdf2
|
||||||
(pfx=`pwd` && \
|
(pfx=`pwd` && \
|
||||||
cd $(SDF2) && \
|
cd $(SDF2) && \
|
||||||
./configure --prefix=$$pfx/inst && \
|
CC="$(CC) -pg" ./configure --prefix=$$pfx/inst --with-cflags="$(CFLAGS)" && \
|
||||||
make && \
|
make && \
|
||||||
make install)
|
make install)
|
||||||
touch build-sdf2
|
touch build-sdf2
|
||||||
|
@ -83,3 +85,7 @@ build-sdf2: have-sdf2
|
||||||
all: build-db build-aterm build-sdf2
|
all: build-db build-aterm build-sdf2
|
||||||
|
|
||||||
EXTRA_DIST = $(DB).tar.gz $(ATERM).tar.gz $(SDF2).tar.gz
|
EXTRA_DIST = $(DB).tar.gz $(ATERM).tar.gz $(SDF2).tar.gz
|
||||||
|
|
||||||
|
ext-clean:
|
||||||
|
$(RM) -f have-db build-db have-aterm build-aterm have-sdf2 build-sdf2
|
||||||
|
$(RM) -rf $(DB) $(ATERM) $(SDF2)
|
||||||
|
|
Loading…
Reference in a new issue