-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[qt5] Fix linux dynamic build #15005
Conversation
c6d90a7
to
3ddb154
Compare
cc @Neumann-A for review this PR, |
27b69ab
to
04635cc
Compare
04635cc
to
53daa6e
Compare
set(_ld_library_path_backup_ $ENV{LD_LIBRARY_PATH}) | ||
if(NOT "${_ld_library_path_backup_}" STREQUAL "") |
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.
That is incorrect. if $ENV{LD_LIBRARY_PATH} is set to "" it means .
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.
ok, I will use if(DEFINED ENV{<name>})
. Thanks.
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.
You can check again. I unset the env variable if it wasn't set, otherwise I use the backup.
781e3d4
to
8bdd6f4
Compare
8bdd6f4
to
9eee572
Compare
@Neumann-A Do you have any other concerns about this? |
9eee572
to
dbf8fb7
Compare
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.
LGTM
Thanks for your help! |
Describe the pull request
What does your PR fix? Fixes [qt5-base:x64-linux] build failure: [libpq] not found with dynamic linkage #14879
Which triplets are supported/not supported? x64-linux-dynamic
Basically this PR does three things:
Setting LD_LIBRARY_PATH may be somewhat dangerous, but I cannot find a better way to do that, without changing too much things. If someone have a better idea, feel free to propose !