We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65020ed commit beed95fCopy full SHA for beed95f
Lib/distutils/unixccompiler.py
@@ -238,9 +238,13 @@ def runtime_library_dir_option(self, dir):
238
# -Wl whenever gcc was used in the past it is probably
239
# safest to keep doing so.
240
if sysconfig.get_config_var("GNULD") == "yes":
241
- # GNU ld needs an extra option to get a RUNPATH
+ # GNU ELF ld needs an extra option to get a RUNPATH
242
# instead of just an RPATH.
243
- return "-Wl,--enable-new-dtags,-R" + dir
+ if sys.platform in ["win32", "cygwin"] or \
244
+ "mingw" in compiler:
245
+ return []
246
+ else:
247
+ return "-Wl,--enable-new-dtags,-R" + dir
248
else:
249
return "-Wl,-R" + dir
250
0 commit comments