Fix boost Makefile (build for right android architecture).
authorDaniel G <giri@nwrk.biz>
Tue, 12 Feb 2019 21:06:39 +0000 (22:06 +0100)
committerDaniel G <giri@nwrk.biz>
Tue, 12 Feb 2019 21:06:39 +0000 (22:06 +0100)
_template/packages/boost1.68.0/Makefile

index 8b73283..e628e29 100644 (file)
@@ -59,8 +59,8 @@ android_arm:
        ./bootstrap.sh; \
        ./b2 --clean; \
        ./b2 --user-config="user-config.jam" cflags="--sysroot=$(ANDROID_NDK_HOME)/platforms/android-23/arch-arm -I$(ANDROID_NDK_HOME)/sources/cxx-stl/llvm-libc++/libcxx/include" \
-       cxxflags="--sysroot=$(ANDROID_NDK_HOME)/platforms/android-23/arch-arm -I$(ANDROID_NDK_HOME)/sources/cxx-stl/llvm-libc++/libcxx/include -I$(ANDROID_NDK_HOME)/sources/android/support/include" \
-       linkflags="--sysroot=$(ANDROID_NDK_HOME)/platforms/android-23/arch-arm -static-libgcc -static-libstdc++" \
+       cxxflags="-std=c++11 --sysroot=$(ANDROID_NDK_HOME)/platforms/android-23/arch-arm -I$(ANDROID_NDK_HOME)/sources/cxx-stl/llvm-libc++/libcxx/include -I$(ANDROID_NDK_HOME)/sources/android/support/include -march=armv7-a" \
+       linkflags="-std=c++11 --sysroot=$(ANDROID_NDK_HOME)/platforms/android-23/arch-arm -static-libgcc -static-libstdc++ -march=armv7-a" \
        address-model=32 toolset=gcc-arm link=static runtime-link=static variant=release $(MODULES)
        mkdir -p $(WORKDIR)/../../lib_include/android_arm
        mkdir -p $(WORKDIR)/../../lib/android_arm