--- Lib/distutils/unixccompiler.py.orig 2009-07-17 14:58:45 +0200 +++ Lib/distutils/unixccompiler.py 2009-07-17 15:03:04 +0200 @@ -284,7 +284,9 @@ # MacOSX's linker doesn't understand the -R flag at all return "-L" + dir elif sys.platform[:5] == "hp-ux": - return "+s -L" + dir + elif compiler[:3] == "gcc" or compiler[:3] == "g++": + return ["-Wl,+s", "-L" + dir] + return ["+s", "-L" + dir] elif sys.platform[:7] == "irix646" or sys.platform[:6] == "osf1V5": return ["-rpath", dir] elif compiler[:3] == "gcc" or compiler[:3] == "g++":