Select Git revision
-
Guillaume Roguez authored
This patch fixes regression introduced in commit 6f57f002. clang++ was used in place of g++ on Android platform. Change-Id: Idcb7baafa842eb1f68e9a9ed02e5d7949e1588d5 Tuleap: #682
Guillaume Roguez authoredThis patch fixes regression introduced in commit 6f57f002. clang++ was used in place of g++ on Android platform. Change-Id: Idcb7baafa842eb1f68e9a9ed02e5d7949e1588d5 Tuleap: #682
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
rules.mak 1.96 KiB
# Boost
BOOST_VERSION := 1_61_0
BOOST_URL := https://downloads.sourceforge.net/project/boost/boost/1.61.0/boost_$(BOOST_VERSION).tar.bz2
PKGS += boost
ifdef HAVE_LINUX
ifndef HAVE_ANDROID
PKGS_FOUND += boost
endif
endif
BOOST_B2_OPTS := variant=release \
link=static \
--prefix="$(PREFIX)" \
--includedir="$(PREFIX)/include" \
--libdir="$(PREFIX)/lib" \
--build="$(BUILD)" \
--host="$(HOST)" \
--target="$(HOST)" \
--program-prefix="" \
--with-system --with-random \
define="BOOST_SYSTEM_NO_DEPRECATED" \
-sNO_BZIP2=1 cxxflags=-fPIC cflags=-fPIC
ifdef HAVE_WIN32
BOOST_B2_OPTS += target-os=windows \
threadapi=win32 \
runtime-link=static \
binary-format=pe \
architecture=x86 \
--user-config=user-config.jam \
cxxflags="-std=c++11 -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4"
endif
ifdef HAVE_ANDROID
BOOST_B2_OPTS += --user-config=user-config.jam
endif
$(TARBALLS)/boost_$(BOOST_VERSION).tar.bz2:
$(call download,$(BOOST_URL))
.sum-boost: boost_$(BOOST_VERSION).tar.bz2
boost: boost_$(BOOST_VERSION).tar.bz2 .sum-boost
$(UNPACK)
$(MOVE)
.boost: boost
ifdef HAVE_WIN32
cd $< && echo "using gcc : mingw64 : ${HOST}-g++" > user-config.jam
cd $< && echo ":" >> user-config.jam
cd $< && echo "<rc>${HOST}-windres" >> user-config.jam
cd $< && echo "<archiver>${HOST}-ar" >> user-config.jam
cd $< && echo ";" >> user-config.jam
endif
ifdef HAVE_ANDROID
cd $< && echo "using gcc : android : g++" > user-config.jam
cd $< && echo ":" >> user-config.jam
cd $< && echo "<archiver>${HOST}-ar" >> user-config.jam
cd $< && echo "<compileflags>-DANDROID" >> user-config.jam
cd $< && echo "<compileflags>-D__ANDROID__" >> user-config.jam
cd $< && echo "<compileflags>-I$(ANDROID_TOOLCHAIN)/include/c++/4.9" >> user-config.jam
cd $< && echo ";" >> user-config.jam
endif
cd $< && $(HOSTVARS) ./bootstrap.sh
cd $< && $(HOSTVARS) ./b2 $(BOOST_B2_OPTS) install
touch $@