From 26b6d6d2d8d6d1ff5a1f3d2d3ec1a2f0fc4612f6 Mon Sep 17 00:00:00 2001 From: wincsb Date: Tue, 31 Dec 2019 10:48:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=8A=A8=E6=80=81=E5=BA=93?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E6=9B=B4=E6=96=B0=E4=B8=8D=E7=94=9F=E6=95=88?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ChainTest/src/Makefile | 3 ++- Hello/src/Makefile | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChainTest/src/Makefile b/ChainTest/src/Makefile index 77c328b..1bc01c9 100644 --- a/ChainTest/src/Makefile +++ b/ChainTest/src/Makefile @@ -1,7 +1,8 @@ CC = gcc CXX = g++ CFLAGS = -g -O2 -fPIC -CXXFLAG = -std=c++14 -O2 -Wall -ggdb -m64 -D_GNU_SOURCE=1 -D_REENTRANT -D__GUNC__ -fPIC -DNODE_BEAT=10.0 +cplusplus_version=$(shell g++ --version | grep "^g++" | awk '{if ($$NF > 5.0) print "c++14"; else print "c++11";}') +CXXFLAG = -std=$(cplusplus_version) -g2 -O3 -Wall -Wno-unused-function -m64 -Wl,--export-dynamic --no-gnu-unique -D_GNU_SOURCE=1 -D_REENTRANT -D__GUNC__ -fPIC -DNODE_BEAT=10.0 ARCH:=$(shell uname -m) diff --git a/Hello/src/Makefile b/Hello/src/Makefile index 8fd03ef..eff1548 100644 --- a/Hello/src/Makefile +++ b/Hello/src/Makefile @@ -2,7 +2,7 @@ CC = gcc CXX = g++ CFLAGS = -g -O2 -fPIC cplusplus_version=$(shell g++ --version | grep "^g++" | awk '{if ($$NF > 5.0) print "c++14"; else print "c++11";}') -CXXFLAG = -std=$(cplusplus_version) -g2 -O3 -Wall -Wno-unused-function -m64 -Wl,--export-dynamic -D_GNU_SOURCE=1 -D_REENTRANT -D__GUNC__ -fPIC -DNODE_BEAT=10.0 +CXXFLAG = -std=$(cplusplus_version) -g2 -O3 -Wall -Wno-unused-function -m64 -Wl,--export-dynamic --no-gnu-unique -D_GNU_SOURCE=1 -D_REENTRANT -D__GUNC__ -fPIC -DNODE_BEAT=10.0 ARCH:=$(shell uname -m)