Use system libdir when searching for dynamically loaded libraries #25

已合併
SlavekB 將 1 次提交從 feat/search-libs-in-system-libdir 合併至 master 5 年前
擁有者

To dynamically load libraries, we need to identify the directory in which the library will be searched for.

Here are different ways to deal with multi-arch in individual distributions. Some consider only 64 × 32 bits and use lib64 × lib (RedHat, Slackware), some consider full multi-arch and use lib/x86_64-linux-gnu, lib/i386-linux-gnu, lib/arm-linux-gnueabihf,… (Debian, Ubuntu).

Currently, KDELIBSUFF was used, which assumed the '64' setting for lib64. However, this is not enough for a full multi-arch case. When searching for an SSL libraries, it is currently looking for all the lib/*-*-* directories, which can lead to finding a library that is for the other architecture.

The proposed patch uses the fact that CMake rules contain the default path for libraries. Instead of KDELIBSUFF, SYSTEM_LIBDIR is now used, which is set according to the CMake value. As a result, on fully multi-arch systems, a directory for the right architecture will be searched.

To dynamically load libraries, we need to identify the directory in which the library will be searched for. Here are different ways to deal with multi-arch in individual distributions. Some consider only 64 × 32 bits and use lib64 × lib (RedHat, Slackware), some consider full multi-arch and use lib/x86_64-linux-gnu, lib/i386-linux-gnu, lib/arm-linux-gnueabihf,… (Debian, Ubuntu). Currently, `KDELIBSUFF` was used, which assumed the '64' setting for lib64. However, this is not enough for a full multi-arch case. When searching for an SSL libraries, it is currently looking for all the `lib/*-*-*` directories, which can lead to finding a library that is for the other architecture. The proposed patch uses the fact that CMake rules contain the default path for libraries. Instead of `KDELIBSUFF`, `SYSTEM_LIBDIR` is now used, which is set according to the CMake value. As a result, on fully multi-arch systems, a directory for the right architecture will be searched.
SlavekB 新增到 R14.0.6 release 里程碑 5 年前
SlavekB 關閉了這個合併請求 5 年前
SlavekB 刪除分支 feat/search-libs-in-system-libdir 5 年前
此合併請求已被合併為 8a859540c3
登入 才能加入這對話。
沒有審核者
未選擇里程碑
沒有負責人
1 參與者
通知
截止日期

未設定截止日期。

先決條件

未設定先決條件。

參考: TDE/tdelibs#25
載入中…
尚未有任何內容