-
Notifications
You must be signed in to change notification settings - Fork 127
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
Fix unknown argument: '-export-dynamic' on macOS #227
Open
jponf
wants to merge
1
commit into
aws:master
Choose a base branch
from
jponf:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: separate out
-Wl
and-export-dynamic
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: explore separating out linker and compile args if any, guideline- https://setuptools.pypa.io/en/latest/userguide/ext_modules.html#compiler-and-linker-options
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand your suggestion. The -Wl option is a comma separated list of options to forward to the linker. In the link you suggested there is an example where -Wl is joint with the option "-rpath"
I did some more tests,
gcc
accepts the stand-alone -export-dynamic but clang does not, it requires it being passed with "-Wl" to properly forward it to the linker. Additionally, separating "-Wl" and "-export-dynamic" breaks in bothgcc
andclang
since "-Wl" alone is an unrecognized option. Finally, I've tested moving the option to runtime_library_dirs and extra_link_args and only works on the first.If you want I could move the option to the argument runtime_library_dirs but the value would still be
"-Wl,-export-dynamic"
. The only difference it would make is the order in which the option will be appended into the command to invokegcc
orclang
. I'm ok with either change.