New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unixccompiler.py should deal with env in linker #41660
Comments
When the linker command begins with env, plus some environment The following seems to be fix the problem: --- unixccompiler.py.orig 2004-08-29 09:45:13.000000000 -0700
+++ unixccompiler.py 2005-03-06 16:36:05.000000000 -0800
@@ -172,7 +172,12 @@
else:
linker = self.linker_so[:]
if target_lang == "c++" and self.compiler_cxx:
- linker[0] = self.compiler_cxx[0]
+ i = 0
+ if os.path.basename(linker[0]) == "env":
+ i = 1
+ while '=' in linker[i]:
+ i = i + 1
+ linker[i] = self.compiler_cxx[0]
self.spawn(linker + ld_args)
except DistutilsExecError, msg:
raise LinkError, msg |
Logged In: YES Can you please give a specific example of what you did, what |
Logged In: YES I was trying to build wxPython on Mac OS X. Without the change, it would g++ MACOSX_DEPLOYMENT_TARGET=10.3 c++ ... and fail. This is because it overwrote "env" with "g++". It needs to skip the |
Logged In: YES Hmm. Where does the "env MACOSX_DEPLOYMENT_TARGET" come |
Logged In: YES I don't know the internal of python all that well, but I know that python (and |
Logged In: YES Can you find out where it does pick it up *from*, please? |
Logged In: YES OK, looks like my problem was with 2.3.4, so I made that patch. Now that |
Logged In: YES Indeed, 2.3.5 (and 2.4.1) were patched wrt. the |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: