commit de13fa02091571275c43d03a938b5c2d4e8acddd
parent 4445d7d5b0e9668c13da2b1e97345c16409afe26
Author: Morel BĂ©renger <berengermorel76@gmail.com>
Date: Sun, 18 Apr 2021 21:05:07 +0200
all: improve ninja configuration
* use gcc tools if variables were empty
* remove zombi code (might break some builds, but better to fix those
than keep that)
* really use `ld` for linking, instead of relying on compilers doing the
correct magic guess
* same for `ar`
Diffstat:
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/conf.ninja b/conf.ninja
@@ -1,12 +1,12 @@
# conf.ninja
ninja_required_version = 1.8
-CXX = $$CXX
-CC = $$CC
-#LD = $$LD
-#AR = $$AR
-LD = $$CXX
-AR = ar
+CXX = $${CXX:-"g++"}
+CC = $${CC:-"gcc"}
+LD = $${LD:-"ld"}
+AR = $${AR:-"ar"}
+
+LDFLAGS = $${LDFLAGS:-""}
rule cc
description = compiling $in toward $out