3
# DP: Don't add standard library dirs to library_dirs and runtime_library_dirs.
5
if [ $# -eq 3 -a "$2" = '-d' ]; then
8
elif [ $# -ne 1 ]; then
9
echo >&2 "usage: `basename $0`: -patch|-unpatch [-d <srcdir>]"
14
patch $pdir -f --no-backup-if-mismatch -p0 < $0
15
#cd ${dir}gcc && autoconf
18
patch $pdir -f --no-backup-if-mismatch -R -p0 < $0
19
#rm ${dir}gcc/configure
22
echo >&2 "usage: `basename $0`: -patch|-unpatch [-d <srcdir>]"
27
--- Lib/distutils/unixccompiler.py~ 2007-08-31 21:38:37.000000000 +0200
28
+++ Lib/distutils/unixccompiler.py 2007-08-31 21:42:54.000000000 +0200
31
libraries, library_dirs, runtime_library_dirs = fixed_args
33
+ # filter out standard library paths, which are not explicitely needed
35
+ library_dirs = [dir for dir in library_dirs
36
+ if not dir in ('/lib', '/lib64', '/usr/lib', '/usr/lib64')]
37
+ runtime_library_dirs = [dir for dir in runtime_library_dirs
38
+ if not dir in ('/lib', '/lib64', '/usr/lib', '/usr/lib64')]
40
lib_opts = gen_lib_options(self, library_dirs, runtime_library_dirs,
42
if not isinstance(output_dir, (basestring, type(None))):