]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
remove adding CMAKE_CXX_IMPLICIT_LINK_LIBRARIES to PRIVATE_LIBS
authorDuncan Bellamy <dunk@denkimushi.com>
Mon, 27 Sep 2021 08:37:00 +0000 (09:37 +0100)
committerKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Tue, 12 Oct 2021 08:51:34 +0000 (11:51 +0300)
as on alpine linux this add gcc_s which is a shared library

on alpine:
Libs.private: -lstdc++ -lm -lssp_nonshared -lgcc_s -lgcc -lc -lgcc_s -lgcc

CMakeLists.txt
libhs.pc.in

index bd658ab08457290d9884a72149c13612ee35776a..b65e3a0b4bad3de8aa10c2863dcdf536cb148efc 100644 (file)
@@ -473,14 +473,6 @@ configure_file(${CMAKE_MODULE_PATH}/config.h.in ${PROJECT_BINARY_DIR}/config.h)
 configure_file(src/hs_version.h.in ${PROJECT_BINARY_DIR}/hs_version.h)
 
 
-# expand out library names for pkgconfig static link info
-foreach (LIB ${CMAKE_CXX_IMPLICIT_LINK_LIBRARIES})
-    # this is fragile, but protects us from toolchain specific files
-    if (NOT EXISTS ${LIB})
-        set(PRIVATE_LIBS "${PRIVATE_LIBS} -l${LIB}")
-    endif()
-endforeach()
-
 configure_file(libhs.pc.in libhs.pc @ONLY) # only replace @ quoted vars
 install(FILES ${CMAKE_BINARY_DIR}/libhs.pc
     DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
index fed4db454bc90017534ce1e28a52ac5588f3386c..3ad2b90ccc590a0d71954f75696577c1b4a756dd 100644 (file)
@@ -7,5 +7,4 @@ Name: libhs
 Description: Intel(R) Hyperscan Library
 Version: @HS_VERSION@
 Libs: -L${libdir} -lhs
-Libs.private: @PRIVATE_LIBS@
 Cflags: -I${includedir}/hs