users: workaround build failure

x86_64-suse-linux/bin/ld: libusers_internal.a(mocs_compilation.cpp.o):
  relocation R_X86_64_32 against symbol `_ZN6Config16staticMetaObjectE'
  can not be used when making a shared object; recompile with -fPIC
x86_64-suse-linux/bin/ld: failed to set dynamic section sizes: bad value
collect2: error: ld returned 1 exit status
This commit is contained in:
Adriaan de Groot 2023-09-09 01:27:13 +02:00
parent 60df29d734
commit 0500eb54da

View File

@ -7,7 +7,11 @@ find_package(${qtname} ${QT_VERSION} CONFIG REQUIRED Core DBus Network)
find_package(Crypt REQUIRED)
# Add optional libraries here
set(USER_EXTRA_LIB)
set(USER_EXTRA_LIB
${kfname}::CoreAddons
${qtname}::DBus
${CRYPT_LIBRARIES}
)
find_package(LibPWQuality)
set_package_properties(LibPWQuality PROPERTIES PURPOSE "Extra checks of password quality")
@ -44,15 +48,13 @@ set(_users_src
calamares_add_library(
users_internal
EXPORT_MACRO PLUGINDLLEXPORT_PRO
TARGET_TYPE STATIC
TARGET_TYPE OBJECT
NO_INSTALL
NO_VERSION
SOURCES
${_users_src}
LINK_LIBRARIES
${kfname}::CoreAddons
${qtname}::DBus
${CRYPT_LIBRARIES}
${USER_EXTRA_LIB}
)
calamares_add_plugin(users