Skip to content

Commit 92736ce

Browse files
committed
Fixed makefiles on Windows
1 parent d493f03 commit 92736ce

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/stabtest/makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ ifeq ($(OS),Windows_NT)
33
PLATFORM_OPTS=-static
44
else
55
EXT=
6-
PLATFORM_OPTS=
6+
PLATFORM_OPTS=-lrt
77
endif
88

99

1010
default: stabtest$(EXT)
1111

1212
stabtest$(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 -lrt -Wl,--no-as-needed
13+
g++ $(PLATFORM_OPTS) -std=c++11 -Wpedantic -Wall -DNDEBUG -O3 stabtest.cpp ../common/simplethread.cpp -o stabtest$(EXT) -pthread -Wl,--no-as-needed
1414

1515
run: stabtest$(EXT)
1616
./stabtest$(EXT)

tests/unittests/makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ ifeq ($(OS),Windows_NT)
33
PLATFORM_OPTS=-static
44
else
55
EXT=
6-
PLATFORM_OPTS=
6+
PLATFORM_OPTS=-lrt
77
endif
88

99

1010
default: unittests$(EXT)
1111

1212
unittests$(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 -lrt -Wl,--no-as-needed
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
1414

1515
run: unittests$(EXT)
1616
./unittests$(EXT)

0 commit comments

Comments
 (0)