mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
AIX: Drop unnecessary -l from CMAKE_DL_LIBS
The `-lld` linker flag was added from the previous command-line script that have all values in `CMAKE_DL_LIBS` prepended with `-l`. On AIX, the `dlopen()` is otherwise in C library (default). But it seems that also `libld` library was once needed on some versions to have dynamic loading working. Sync `CMAKE_DL_LIBS` value style with all other current usages.
This commit is contained in:
@@ -10,7 +10,7 @@ Few examples of the values this variable is set to:
|
||||
On most Unix-like systems.
|
||||
|
||||
``-lld``
|
||||
On AIX.
|
||||
On AIX, prior to CMake 4.2.
|
||||
|
||||
``dld``
|
||||
On HP-UX.
|
||||
|
||||
@@ -3,7 +3,7 @@ set(CMAKE_SHARED_LIBRARY_SUFFIX ".so") # .so
|
||||
set(CMAKE_SHARED_LIBRARY_ARCHIVE_SUFFIX ".a") # .a
|
||||
set(CMAKE_AIX_IMPORT_FILE_PREFIX "")
|
||||
set(CMAKE_AIX_IMPORT_FILE_SUFFIX ".imp")
|
||||
set(CMAKE_DL_LIBS "-lld")
|
||||
set(CMAKE_DL_LIBS "ld")
|
||||
|
||||
# RPATH support on AIX is called libpath. By default the runtime
|
||||
# libpath is paths specified by -L followed by /usr/lib and /lib. In
|
||||
|
||||
Reference in New Issue
Block a user