summaryrefslogtreecommitdiffstats
path: root/examples/sql/sqlbrowser/qsqlconnectiondialog.cpp
diff options
context:
space:
mode:
authorPeter Kling <pit_kling@web.de>2024-12-24 14:14:42 +0100
committerPeter Kling <pit_kling@web.de>2024-12-31 13:34:50 +0100
commit714ae22b84553271a2809c393dd1a5a90089cc19 (patch)
treefbf1e71c68cced2187be45dffe5ed3cfb56c7a4f /examples/sql/sqlbrowser/qsqlconnectiondialog.cpp
parente57113feac183abd1f5bfcfb633a33e1387b2d3e (diff)
CMake: fix absolute paths w/o suffix in pri/prl files
In the update from 6.7.2 to 6.7.3, commit `ea0f00d5d` changed how linker flags like `ws2_32` are treated when generating pri/prl files. Specifically, before the commit a flag like `ws2_32` was left untouched. The above commit changed it such that such flags are converted to `-lws2_32` (seemingly in order to better support FFmpeg, according to the commit message). However, this change also affects absolute paths if the file has no extension. That is, after the above mentioned commit, an absolute path linker flag to, say, a dylib on macOS without a suffix will result in prepending the `-l` flag. This will result in errors during link time. An example where this caused problems can be found in the nixpkgs PR draft #367206 (https://github.com/NixOS/nixpkgs/pull/367206). This adds a small check to ensure that `-l` is not prepended if the linker flag is an absolute path without a suffix. Change-Id: I2c7ce3aac6624e1a27c59af233e3da2c1ae7ba60 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Diffstat (limited to 'examples/sql/sqlbrowser/qsqlconnectiondialog.cpp')
0 files changed, 0 insertions, 0 deletions