[Distutils] Runtime library directories
A.M. Kuchling
akuchlin@mems-exchange.org
Fri Feb 16 23:53:00 2001
Something I noticed this evening: unixccompiler.py uses -R<dir> for
runtime library directives. That's good syntax for ld, but is it good
syntax for C compilers? GCC requires -Wl,-R<dir> instead to pass it
to the linker; is this standard for Unix C compilers? I suspect this
patch below would be too simple to fix the problem, so how to fix
this?
--amk
Index: unixccompiler.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/unixccompiler.py,v
retrieving revision 1.32
diff -u -p -r1.32 unixccompiler.py
--- unixccompiler.py 2000/09/27 02:08:14 1.32
+++ unixccompiler.py 2001/02/17 04:51:37
@@ -247,7 +247,7 @@ class UnixCCompiler (CCompiler):
return "-L" + dir
def runtime_library_dir_option (self, dir):
- return "-R" + dir
+ return "-Wl,-R" + dir
def library_option (self, lib):
return "-l" + lib