You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/x11-misc/imake/files/imake-1.0.8-respect-LD.patch

16 lines
379 B

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