X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e4a197e4c60e461b8068b0619692ea083e30b8b..7bdfb981a826d29e292738a27700543fa10d2bfb:/wxPython/distutils/unixccompiler.py?ds=sidebyside diff --git a/wxPython/distutils/unixccompiler.py b/wxPython/distutils/unixccompiler.py index 2a6b1beeea..11ecb9f6ae 100644 --- a/wxPython/distutils/unixccompiler.py +++ b/wxPython/distutils/unixccompiler.py @@ -77,6 +77,8 @@ class UnixCCompiler(CCompiler): shared_lib_extension = ".so" dylib_lib_extension = ".dylib" static_lib_format = shared_lib_format = dylib_lib_format = "lib%s%s" + if sys.platform == "cygwin": + exe_extension = ".exe" def preprocess(self, source, output_file=None, macros=None, include_dirs=None, @@ -201,8 +203,10 @@ class UnixCCompiler(CCompiler): if sys.platform[:6] == "darwin": # 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,-R" + dir + return "-Wl,-R" + dir else: return "-R" + dir