Skip to content

Commit 5c6c748

Browse files
committed
fix gcc link errors
1 parent 6a6087b commit 5c6c748

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ all:
1313
test: test-without-optimization test-with-optimization test-with-cpp98 test-with-cpp11
1414

1515
test-without-optimization: test/test.cpp timsort.hpp .bin
16-
$(COMPILE) $(LIB_BOOST_TEST) $< -o .bin/$@
16+
$(COMPILE) $< $(LIB_BOOST_TEST) -o .bin/$@
1717
time ./.bin/$@
1818

1919
test-with-optimization: test/test.cpp timsort.hpp .bin
20-
$(COMPILE) $(OPTIMIZE) $(LIB_BOOST_TEST) $< -o .bin/$@
20+
$(COMPILE) $(OPTIMIZE) $< $(LIB_BOOST_TEST) -o .bin/$@
2121
time ./.bin/$@
2222

2323
test-with-cpp98: test/test.cpp timsort.hpp .bin
24-
$(COMPILE) $(LIB_BOOST_TEST) -std=c++98 $< -o .bin/$@
24+
$(COMPILE) -std=c++98 $< $(LIB_BOOST_TEST) -o .bin/$@
2525
time ./.bin/$@
2626

2727
test-with-cpp11: test/test.cpp timsort.hpp .bin
28-
$(COMPILE) $(LIB_BOOST_TEST) -std=c++11 $< -o .bin/$@
28+
$(COMPILE) -std=c++11 $< $(LIB_BOOST_TEST) -o .bin/$@
2929
time ./.bin/$@
3030

3131
bench: example/bench.cpp timsort.hpp .bin

0 commit comments

Comments
 (0)