summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-misc/imake/files/imake-1.0.8-xmkmf-pass-cc-ld.patch')
-rw-r--r--x11-misc/imake/files/imake-1.0.8-xmkmf-pass-cc-ld.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/x11-misc/imake/files/imake-1.0.8-xmkmf-pass-cc-ld.patch b/x11-misc/imake/files/imake-1.0.8-xmkmf-pass-cc-ld.patch
new file mode 100644
index 000000000000..a27c1ac04ba0
--- /dev/null
+++ b/x11-misc/imake/files/imake-1.0.8-xmkmf-pass-cc-ld.patch
@@ -0,0 +1,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
+ ;;