Skip to content

Commit

Permalink
Fix underlinking the math library; see https://bugs.gentoo.org/925932
Browse files Browse the repository at this point in the history
Signed-off-by: Giuseppe Foti <[email protected]>
  • Loading branch information
MocioF authored and bjoernricks committed Apr 10, 2024
1 parent c710122 commit 541442b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion base/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ set (HEADERS array.h credentials.h cvss.h drop_privileges.h hosts.h logging.h
if (BUILD_STATIC)
set (LIBGVM_BASE_NAME gvm_base_static)
add_library (gvm_base_static STATIC ${FILES})
target_link_libraries(gvm_base_static m)
set_target_properties (gvm_base_static PROPERTIES OUTPUT_NAME "gvm_base")
set_target_properties (gvm_base_static PROPERTIES CLEAN_DIRECT_OUTPUT 1)
set_target_properties (gvm_base_static PROPERTIES PUBLIC_HEADER "${HEADERS}")
Expand All @@ -51,7 +52,7 @@ if (BUILD_SHARED)
set_target_properties (gvm_base_shared PROPERTIES VERSION "${CPACK_PACKAGE_VERSION}")
set_target_properties (gvm_base_shared PROPERTIES PUBLIC_HEADER "${HEADERS}")

target_link_libraries (gvm_base_shared LINK_PRIVATE ${GLIB_LDFLAGS} ${LINKER_HARDENING_FLAGS} ${SENTRY_LDFLAGS})
target_link_libraries (gvm_base_shared LINK_PRIVATE ${GLIB_LDFLAGS} ${LINKER_HARDENING_FLAGS} ${SENTRY_LDFLAGS} m)
endif (BUILD_SHARED)

set (LIBGVM_BASE_NAME
Expand Down

0 comments on commit 541442b

Please sign in to comment.