diff options
author | Mike Hommey <mh@glandium.org> | 2016-07-29 21:13:39 +0900 |
---|---|---|
committer | Mike Hommey <mh@glandium.org> | 2016-07-29 21:13:39 +0900 |
commit | d75065475859aa2770276319aae64a45de304bd3 (patch) | |
tree | 67429d1925ccbb2ddb4d744056d8d08b9d7607f4 /coreconf/OS2.mk | |
parent | 8c41b8f4960ff16ddeae0741370c4bc0ba6c61dd (diff) | |
download | nss-hg-d75065475859aa2770276319aae64a45de304bd3.tar.gz |
Bug 1290334 - Use a LD variable instead of LINK. r=wtc
MSVC's link.exe allows to pass linker flags through the LINK environment
variable[1]. When running under a shell that has the GNU coreutils's
link.exe installed (a tool to create hard links), it can become
necessary to override LINK from the command line. In that case, MAKE
passes down LINK as an environment variable to submake and subprocesses,
which then means it's passed down to link.exe itself, which then tries
to link itself to the rest of the passed arguments, and fails,
presumably because it can't open the executable while it's being
executed (and even if it could, that would still be an invalid thing to
link).
So, change the variable name.
1. https://msdn.microsoft.com/en-us/library/6y6t9esh.aspx
Diffstat (limited to 'coreconf/OS2.mk')
-rw-r--r-- | coreconf/OS2.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreconf/OS2.mk b/coreconf/OS2.mk index bff216c63..f23571ce0 100644 --- a/coreconf/OS2.mk +++ b/coreconf/OS2.mk @@ -20,7 +20,7 @@ PROG_SUFFIX = .exe CCC = gcc -LINK = gcc +LD = gcc AR = emxomfar r $@ # Keep AR_FLAGS blank so that we do not have to change rules.mk AR_FLAGS = |