mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-26 14:34:22 +00:00
fixing android build
This commit is contained in:
parent
15d7fd07b0
commit
5f3731bab3
@ -166,7 +166,7 @@ DEFS += -DBOOST_ASIO_SEPARATE_COMPILATION
|
|||||||
# for boost 1.37, add -mt to the boost libraries
|
# for boost 1.37, add -mt to the boost libraries
|
||||||
LIBS += \
|
LIBS += \
|
||||||
-Wl,-B$(LMODE) \
|
-Wl,-B$(LMODE) \
|
||||||
-Wl,--entry=main,-rpath-link=$(SYSROOT)/usr/lib/ -L$(SYSROOT)/usr/lib/ \
|
-Wl,-rpath-link=$(SYSROOT)/usr/lib/ -L$(SYSROOT)/usr/lib/ \
|
||||||
-L$(BOOSTDIR)/lib \
|
-L$(BOOSTDIR)/lib \
|
||||||
-l boost_system$(BOOST_LIB_SUFFIX) \
|
-l boost_system$(BOOST_LIB_SUFFIX) \
|
||||||
-l boost_filesystem$(BOOST_LIB_SUFFIX) \
|
-l boost_filesystem$(BOOST_LIB_SUFFIX) \
|
||||||
@ -174,15 +174,13 @@ LIBS += \
|
|||||||
-l boost_thread$(BOOST_LIB_SUFFIX) \
|
-l boost_thread$(BOOST_LIB_SUFFIX) \
|
||||||
-l db_cxx$(BDB_LIB_SUFFIX) \
|
-l db_cxx$(BDB_LIB_SUFFIX) \
|
||||||
-L$(NDK_BASE)/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/ -lgnustl_static
|
-L$(NDK_BASE)/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/ -lgnustl_static
|
||||||
# -l ssl_static \
|
#-l ssl_static -l crypto_static
|
||||||
# -l crypto_static \
|
|
||||||
|
|
||||||
LIBS+= \
|
LIBS+= \
|
||||||
-Wl,-B$(LMODE2) \
|
-Wl,-B$(LMODE2) \
|
||||||
-Wl,--entry=main,-rpath-link=$(SYSROOT)/usr/lib/ -L$(SYSROOT)/usr/lib/ \
|
-Wl,-rpath-link=$(SYSROOT)/usr/lib/ -L$(SYSROOT)/usr/lib/ \
|
||||||
-lssl -lcrypto -lstdc++ -lm -lgcc -nostdlib -lc \
|
-lssl -lcrypto -lstdc++ -lm -lgcc -nostdlib -lc \
|
||||||
$(NDK_BASE)/platforms/android-9/arch-arm/usr/lib/crtbegin_static.o
|
$(NDK_BASE)/platforms/android-9/arch-arm/usr/lib/crtbegin_dynamic.o
|
||||||
|
|
||||||
|
|
||||||
# auto-generated dependencies:
|
# auto-generated dependencies:
|
||||||
-include obj/*.P
|
-include obj/*.P
|
||||||
@ -202,6 +200,7 @@ obj/%.o: %.cpp
|
|||||||
|
|
||||||
twisterd: $(OBJS:obj/%=obj/%)
|
twisterd: $(OBJS:obj/%=obj/%)
|
||||||
$(LINK) $(xCXXFLAGS) -o $@ $^ $(xLDFLAGS) $(LIBS)
|
$(LINK) $(xCXXFLAGS) -o $@ $^ $(xLDFLAGS) $(LIBS)
|
||||||
|
arm-linux-androideabi-strip -g $@
|
||||||
|
|
||||||
TESTOBJS := $(patsubst test/%.cpp,obj-test/%.o,$(wildcard test/*.cpp))
|
TESTOBJS := $(patsubst test/%.cpp,obj-test/%.o,$(wildcard test/*.cpp))
|
||||||
|
|
||||||
|
@ -9,8 +9,7 @@ export CXX=arm-linux-androideabi-gcc
|
|||||||
export CXXFLAGS="-I$SYSROOT/usr/include/ -I$BOOSTDIR/include/boost-1_49 \
|
export CXXFLAGS="-I$SYSROOT/usr/include/ -I$BOOSTDIR/include/boost-1_49 \
|
||||||
-I$NDK_BASE/sources/cxx-stl/gnu-libstdc++/4.6/include \
|
-I$NDK_BASE/sources/cxx-stl/gnu-libstdc++/4.6/include \
|
||||||
-I$NDK_BASE/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/include \
|
-I$NDK_BASE/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/include \
|
||||||
-fexceptions -frtti -DHAVE_CXX_STDHEADERS -DANDROID -nostdlib \
|
-fexceptions -frtti -DHAVE_CXX_STDHEADERS -DANDROID -nostdlib"
|
||||||
-fno-use-cxa-atexit"
|
|
||||||
export BOOST_LIB_SUFFIX=-gcc-mt-1_49
|
export BOOST_LIB_SUFFIX=-gcc-mt-1_49
|
||||||
export BDB_LIB_SUFFIX=-4.8
|
export BDB_LIB_SUFFIX=-4.8
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user