diff --git a/makefile b/makefile index 9fef0fe..803eb79 100755 --- a/makefile +++ b/makefile @@ -6,7 +6,7 @@ cc_arm= /toolchains/lede-sdk-17.01.2-bcm53xx_gcc-5.4.0_musl-1.1.16_eabi.Linux-x8 cc_mingw_cross=i686-w64-mingw32-g++-posix cc_mac_cross=o64-clang++ -stdlib=libc++ cc_x86=/toolchains/lede-sdk-17.01.2-x86-generic_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/toolchain-i386_pentium4_gcc-5.4.0_musl-1.1.16/bin/i486-openwrt-linux-c++ -cc_amd64=/toolchains/lede-sdk-17.01.2-x86-64_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/toolchain-x86_64_gcc-5.4.0_musl-1.1.16/bin/x86_64-openwrt-linux-c++ +cc_amd64=g++ #cc_bcm2708=/home/wangyu/raspberry/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++ @@ -17,7 +17,7 @@ NAME=speederv2 FLAGS= -std=c++11 -Wall -Wextra -Wno-unused-variable -Wno-unused-parameter -Wno-missing-field-initializers ${OPT} -TARGETS=amd64 arm mips24kc_be x86 mips24kc_le +TARGETS=amd64 TAR=${NAME}_binaries.tar.gz `echo ${TARGETS}|sed -r 's/([^ ]+)/${NAME}_\1/g'` version.txt @@ -79,7 +79,7 @@ mips24kc_le: git_version ${cc_mips24kc_le} -o ${NAME}_$@ -I. ${SOURCES} ${FLAGS} -lrt -lgcc_eh -static -O2 amd64:git_version - ${cc_amd64} -o ${NAME}_$@ -I. ${SOURCES} ${FLAGS} -lrt -static -O2 -lgcc_eh -ggdb + ${cc_amd64} -o ${NAME}_$@ -I. ${SOURCES} ${FLAGS} -DSYSTEMD_SOCKET_ACTIVATION -lrt -lsystemd -O2 -lgcc_eh -ggdb x86:git_version #to build this you need 'g++-multilib' installed ${cc_x86} -o ${NAME}_$@ -I. ${SOURCES} ${FLAGS} -lrt -static -O2 -lgcc_eh -ggdb