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:
Peter Kokot
2025-07-18 22:50:02 +02:00
committed by Brad King
parent 8eeeeb7efe
commit 0622cb343e
2 changed files with 2 additions and 2 deletions

View File

@@ -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.

View File

@@ -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