summaryrefslogtreecommitdiff
path: root/astro/osmium/files/patch-test_run__tests.sh
blob: 388e09a86eacfedbc7afebc9757c1004ad69dd86 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- test/run_tests.sh.orig	2013-05-09 15:20:50 UTC
+++ test/run_tests.sh
@@ -10,8 +10,10 @@
 
 set -e
 
-CXX="g++"
-CXXFLAGS="-g -Wall -Wextra -Wredundant-decls -Wdisabled-optimization -pedantic -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo -Wno-long-long"
+if [ -z "$CXX" ]; then
+	CXX="g++"
+fi
+CXXFLAGS="$CXXFLAGS -g -Wall -Wextra -Wredundant-decls -Wdisabled-optimization -pedantic -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo -Wno-long-long"
 COMPILE="$CXX -I../include -I. $CXXFLAGS -o tests"
 
 if [ "x$1" = "x-v" ]; then