mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-04-30 04:47:28 -07:00
Also unhardcode g++ to allow building/testing with different compilers. Closes: https://bugs.gentoo.org/964308 Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com> Part-of: https://github.com/gentoo/gentoo/pull/45767 Closes: https://github.com/gentoo/gentoo/pull/45767 Signed-off-by: Sam James <sam@gentoo.org>
28 lines
604 B
Diff
28 lines
604 B
Diff
--- tree.hh-3.18/src/Makefile
|
|
+++ tree.hh-3.18/src/Makefile
|
|
@@ -2,19 +2,19 @@
|
|
all: test1 test2 test_tree
|
|
|
|
%.o: %.cc tree.hh
|
|
- g++ -g -c -o $@ -Wall -O2 -std=c++11 -I. $<
|
|
+ $(CXX) -g -c -o $@ -Wall -O2 -std=c++11 -I. $<
|
|
|
|
test1: test1.o
|
|
- g++ -o test1 test1.o
|
|
+ $(CXX) -o test1 test1.o
|
|
|
|
test2: test2.o
|
|
- g++ -o test2 test2.o
|
|
+ $(CXX) -o test2 test2.o
|
|
|
|
test_tree: test_tree.o
|
|
- g++ -o test_tree test_tree.o
|
|
+ $(CXX) -o test_tree test_tree.o
|
|
|
|
sample_path: sample_path.o
|
|
- g++ -o sample_path sample_path.o
|
|
+ $(CXX) -o sample_path sample_path.o
|
|
|
|
run_tests: test1 test1.req
|
|
./test1 > test1.res
|