diff options
| author | Khem Raj <raj.khem@gmail.com> | 2025-10-13 17:08:33 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-10-14 11:27:19 +0100 |
| commit | 4dabfb3f215eafaf060a04b3258c83edc8500bd1 (patch) | |
| tree | 9d7d54a2d64b7a2f75a7f62b07759da39fd40968 | |
| parent | 7320e59aecbaac830d912dd4c0e68b5963c25db4 (diff) | |
| download | poky-4dabfb3f215eafaf060a04b3258c83edc8500bd1.tar.gz | |
libpam: Fix build with LLD linker
LLD is strict about versioned symbols unlike BFD linker, it flags
undefined ones, Allow undefined symbols like BFD linker
Fixes
| riscv64-yoe-linux-ld.lld: error: version script assignment of 'global' to symbol 'pam_sm_acct_mgmt' failed: symbol not defined
| riscv64-yoe-linux-ld.lld: error: version script assignment of 'global' to symbol 'pam_sm_chauthtok' failed: symbol not defined
| riscv64-yoe-linux-ld.lld: error: version script assignment of 'global' to symbol 'pam_sm_close_session' failed: symbol not defined
| riscv64-yoe-linux-ld.lld: error: version script assignment of 'global' to symbol 'pam_sm_open_session' failed: symbol not defined
| riscv64-yoe-linux-clang: error: linker command failed with exit code 1 (use -v to see invocation)
(From OE-Core rev: a53fddbb99dc746439b5b2adfb7f747ba25a856f)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-extended/pam/libpam_1.7.1.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-extended/pam/libpam_1.7.1.bb b/meta/recipes-extended/pam/libpam_1.7.1.bb index 565b00c264..8d9ea27028 100644 --- a/meta/recipes-extended/pam/libpam_1.7.1.bb +++ b/meta/recipes-extended/pam/libpam_1.7.1.bb | |||
| @@ -30,6 +30,8 @@ DEPENDS = "bison-native flex-native libxml2-native virtual/crypt" | |||
| 30 | 30 | ||
| 31 | EXTRA_OEMESON = "-Ddocs=disabled -Dsecuredir=${base_libdir}/security" | 31 | EXTRA_OEMESON = "-Ddocs=disabled -Dsecuredir=${base_libdir}/security" |
| 32 | 32 | ||
| 33 | LDFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' -Wl,--undefined-version', '', d)}" | ||
| 34 | |||
| 33 | S = "${UNPACKDIR}/Linux-PAM-${PV}" | 35 | S = "${UNPACKDIR}/Linux-PAM-${PV}" |
| 34 | 36 | ||
| 35 | inherit meson gettext pkgconfig systemd ptest github-releases | 37 | inherit meson gettext pkgconfig systemd ptest github-releases |
