diff options
Diffstat (limited to 'x11-misc/imake/files/imake-1.0.8-respect-LD.patch')
-rw-r--r-- | x11-misc/imake/files/imake-1.0.8-respect-LD.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/x11-misc/imake/files/imake-1.0.8-respect-LD.patch b/x11-misc/imake/files/imake-1.0.8-respect-LD.patch new file mode 100644 index 000000000000..a53808625c95 --- /dev/null +++ b/x11-misc/imake/files/imake-1.0.8-respect-LD.patch @@ -0,0 +1,15 @@ +Use LD env if available, other tests already do similar for CC. +https://bugs.gentoo.org/729630 +--- a/imake.c ++++ b/imake.c +@@ -1110,5 +1110,9 @@ + signed char c; + int ldmajor, ldminor; +- const char *ld = "ld -v"; ++ char ld[PATH_MAX]; ++ const char *ldenv; ++ if (!(ldenv = getenv("LD"))) ++ ldenv = "ld"; ++ snprintf(ld, PATH_MAX, "%s -v", ldenv); + + # ifdef CROSSCOMPILE |