summaryrefslogtreecommitdiff
path: root/x11-misc/imake/files/imake-1.0.8-xmkmf-pass-cc-ld.patch
blob: a27c1ac04ba0826b5e977475bd3afe4bf40e3e9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Makefile calls imake again but with ignored CC/LD.
Passing only if set rather than use defaults.
--- a/xmkmf.cpp
+++ b/xmkmf.cpp
@@ -56,7 +56,7 @@
     echo "make Makefiles" &&
-    make Makefiles &&
+    make ${CC:+CC="$CC"} ${LD:+LD="$LD"} Makefiles &&
     echo "make includes" &&
-    make includes &&
+    make ${CC:+CC="$CC"} ${LD:+LD="$LD"} includes &&
     echo "make depend" &&
-    make depend
+    make ${CC:+CC="$CC"} ${LD:+LD="$LD"} depend
     ;;