cairo-dock-team team mailing list archive
-
cairo-dock-team team
-
Mailing list archive
-
Message #07180
[Bug 1923107] Re: Dynamically linked build fails
The linker flags come from the RPM macro %cmake, which is used to setup
the build, but not build or install, for those we have %cmake_build and
%cmake_install.
%cmake expands to:
find . -name CMakeLists.txt \
-exec sed -i -re '/^[[:blank:]]*[sS][eE][tT][[:blank:]]*\([[:blank:]]*(CMAKE_BUILD_TYPE|CMAKE_COLOR_MAKEFILE|CMAKE_INSTALL_PREFIX|CMAKE_VERBOSE_MAKEFILE).*\)/{s/^/#IGNORE /}' {} +
mkdir -p build
cd build
/usr/bin/cmake $OLDPWD/. \
%if "/usr/bin/make" == "/usr/bin/make"
-G"Unix Makefiles" \
%else
-GNinja \
%endif
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DINCLUDE_INSTALL_DIR:PATH=/usr/include \
-DLIB_INSTALL_DIR:PATH=/usr/lib64 \
-DSYSCONF_INSTALL_DIR:PATH=/etc \
-DSHARE_INSTALL_PREFIX:PATH=/usr/share \
-DCMAKE_INSTALL_LIBDIR:PATH=lib64 \
-DCMAKE_INSTALL_LIBEXECDIR=/usr/libexec \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_C_FLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables} -DNDEBUG" \
-DCMAKE_CXX_FLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables} -DNDEBUG" \
-DCMAKE_Fortran_FLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables} -DNDEBUG" \
-DCMAKE_EXE_LINKER_FLAGS=" -Wl,--as-needed -Wl,--no-undefined -Wl,-z,now" \
-DCMAKE_MODULE_LINKER_FLAGS=" -Wl,--as-needed" \
-DCMAKE_SHARED_LINKER_FLAGS=" -Wl,--as-needed -Wl,--no-undefined -Wl,-z,now" \
%if "lib64" == "lib64"
-DLIB_SUFFIX=64 \
%endif
%if 1550 <= 1500
-DCMAKE_SKIP_INSTALL_RPATHS:BOOL=ON \
%endif
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
-DBUILD_SHARED_LIBS:BOOL=ON \
-DBUILD_STATIC_LIBS:BOOL=OFF \
-DCMAKE_COLOR_MAKEFILE:BOOL=OFF \
-DCMAKE_INSTALL_DO_STRIP:BOOL=OFF \
-DCMAKE_MODULES_INSTALL_DIR=/usr/lib64/cmake/%{name}
I will try removing the flag and let you know the outcome, thanks.
--
You received this bug notification because you are a member of Cairo-
Dock Devs, which is subscribed to Cairo-Dock Core.
https://bugs.launchpad.net/bugs/1923107
Title:
Dynamically linked build fails
Status in Cairo-Dock Core:
Triaged
Bug description:
When building I need to limit the build jobs to 1, else it fails with
undefined references. Either way, at the end of the build ld fails to
link. I assume it has something to do with libgldi, probably something
missing in the CMakeLists. I attached the build log where you can see
the build commands.
To manage notifications about this bug go to:
https://bugs.launchpad.net/cairo-dock-core/+bug/1923107/+subscriptions
References