-
Notifications
You must be signed in to change notification settings - Fork 54
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
Revert "Add -Wl,-z,undefs to linux links" #98
Revert "Add -Wl,-z,undefs to linux links" #98
Conversation
This reverts commit a29d777.
@@ -68,10 +68,7 @@ def pybind_extension( | |||
linkopts = linkopts + select({ | |||
"@platforms//os:osx": ["-undefined", "dynamic_lookup"], | |||
Label("@pybind11//:msvc_compiler"): [], | |||
"//conditions:default": [ | |||
"-Wl,-Bsymbolic", | |||
"-Wl,-z,undefs", |
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.
Do you still need "-Wl,-z,undefs"
?
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. I am just reverting the PR to restore the previous working state.
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.
@jiawen Kind reminder
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.
My apologies. I've been slammed with other stuff but I'll take a look at it this weekend.
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.
Sorry this took so long. I finally skimmed what -z undefs
means (thanks @MaskRay !) - yeesh this is a rabbit hole I did not expect to go into.
For some reason, I misread your PR - -Wl,-Bsymbolic
was pre-existing. Approving now.
@@ -68,10 +68,7 @@ def pybind_extension( | |||
linkopts = linkopts + select({ | |||
"@platforms//os:osx": ["-undefined", "dynamic_lookup"], | |||
Label("@pybind11//:msvc_compiler"): [], | |||
"//conditions:default": [ | |||
"-Wl,-Bsymbolic", | |||
"-Wl,-z,undefs", |
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.
Sorry this took so long. I finally skimmed what -z undefs
means (thanks @MaskRay !) - yeesh this is a rabbit hole I did not expect to go into.
For some reason, I misread your PR - -Wl,-Bsymbolic
was pre-existing. Approving now.
Reverts #90 which introduced #94 causing also issues for https://github.com/pybind/pybind11_abseil. The revert closes #94.