-
Notifications
You must be signed in to change notification settings - Fork 220
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
Wrong output for python3-config --ldflags
#1761
Comments
Hi I just came across the same error when build another project and finally found the solution. Just modify the makefile manually like this: |
This bug is introduced by CPython: It has been workaround in anaconda's python 3.5: However, other 3.x versions of anaconda's python still produce wrong ldflags. |
Please explain what's wrong with our ldflags.
…On Jan 31, 2018 5:54 AM, "杨博 (Yang Bo)" ***@***.***> wrote:
This bug is introduced by CPython, and has been fixed in anaconda's python
3.5:
***@***.***
<ContinuumIO/anaconda-recipes@931bfba>
However, other 3.x versions of anaconda's python still produce wrong
ldflags.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1761 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA_pdBpyRv8OqjnlTRylwRxwq9AU87U3ks5tQAAjgaJpZM4Nly7l>
.
|
@mingwandroid Wrong ldflags as described in @ppwwyyxx's post. |
|
.. now-a-days, (since AD 5.0) our Python interpreter is statically linked on macOS and thus prefers to be statically linked, so:
.. is just fine. |
@mingwandroid Interesting, so Debian/Ubuntu gets this wrong on their man-page: http://manpages.ubuntu.com/manpages/xenial/en/man1/i386-linux-gnu-python2.7-config.1.html |
use the approach explained in ContinuumIO/anaconda-issues#1761
Yes it looks like they do indeed get it wrong here! You should note, the python build scripts from Debian/Ubuntu are what inspired me to switch to a static interpreter, that and the prompting of @pitrou |
Ok. I wrote an email to the author of the man-page. |
Just install anaconda for python3.6 on macos sierra, with the graphical installer.
After the installation:
Two things:
-L/Users/xxx/anaconda/lib
in ldflags as well, otherwise a compiler cannot find-lpython3.6m
. This is done in anaconda Linux, also in non-conda python.-stack_size,1000000
? Clang complains that this flag is only valid when linking an executable, while I'm linking a shared library.The text was updated successfully, but these errors were encountered: