File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 11ifeq ($(OS ) ,Windows_NT)
22 EXT=.exe
33 PLATFORM_OPTS=-static
4+ PLATFORM_LD_OPTS=
45else
56 EXT=
6- PLATFORM_OPTS=-lrt
7+ PLATFORM_OPTS=
8+ PLATFORM_LD_OPTS=-lrt
79endif
810
911
1012default : stabtest$(EXT )
1113
1214stabtest$(EXT ) : stabtest.cpp ../../readerwriterqueue.h ../../atomicops.h ../common/simplethread.h ../common/simplethread.cpp makefile
13- g++ $(PLATFORM_OPTS ) -std=c++11 -Wpedantic -Wall -DNDEBUG -O3 stabtest.cpp ../common/simplethread.cpp -o stabtest$(EXT ) -pthread -Wl,--no-as-needed
15+ g++ $(PLATFORM_OPTS ) -std=c++11 -Wpedantic -Wall -DNDEBUG -O3 stabtest.cpp ../common/simplethread.cpp -o stabtest$(EXT ) -pthread $( PLATFORM_LD_OPTS ) -Wl,--no-as-needed
1416
1517run : stabtest$(EXT )
1618 ./stabtest$(EXT )
Original file line number Diff line number Diff line change 11ifeq ($(OS ) ,Windows_NT)
22 EXT=.exe
33 PLATFORM_OPTS=-static
4+ PLATFORM_LD_OPTS=
45else
56 EXT=
6- PLATFORM_OPTS=-lrt
7+ PLATFORM_OPTS=
8+ PLATFORM_LD_OPTS=-lrt
79endif
810
911
1012default : unittests$(EXT )
1113
1214unittests$(EXT ) : unittests.cpp ../../readerwriterqueue.h ../../atomicops.h ../common/simplethread.h ../common/simplethread.cpp minitest.h makefile
13- g++ $(PLATFORM_OPTS ) -std=c++11 -Wpedantic -Wall -DNDEBUG -O3 -g unittests.cpp ../common/simplethread.cpp -o unittests$(EXT ) -pthread -Wl,--no-as-needed
15+ g++ $(PLATFORM_OPTS ) -std=c++11 -Wpedantic -Wall -DNDEBUG -O3 -g unittests.cpp ../common/simplethread.cpp -o unittests$(EXT ) -pthread $( PLATFORM_LD_OPTS ) -Wl,--no-as-needed
1416
1517run : unittests$(EXT )
1618 ./unittests$(EXT )
You can’t perform that action at this time.
0 commit comments