openbsd-ports/net/libproxy/patches/patch-libproxy_cmake_libproxy_cmk
2011-04-26 08:06:41 +00:00

24 lines
1.1 KiB
Plaintext

$OpenBSD: patch-libproxy_cmake_libproxy_cmk,v 1.2 2011/04/26 08:06:41 ajacoutot Exp $
Do not link with -lpthread (we use -pthread in CMAKE_C*_FLAGS)
--- libproxy/cmake/libproxy.cmk.orig Wed Sep 1 22:23:34 2010
+++ libproxy/cmake/libproxy.cmk Tue Mar 22 09:35:32 2011
@@ -2,7 +2,7 @@ add_library(libproxy SHARED extension_config.cpp exten
if(WIN32)
target_link_libraries(libproxy modman;ws2_32;${LIBPROXY_LIBRARIES})
else()
- target_link_libraries(libproxy modman;m;pthread;dl;${LIBPROXY_LIBRARIES})
+ target_link_libraries(libproxy modman;m;${LIBPROXY_LIBRARIES})
endif()
file(TO_NATIVE_PATH ${MODULE_INSTALL_DIR} MODULE_INSTALL_DIR)
if(WIN32)
@@ -17,6 +17,6 @@ endif()
set_property(SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/proxy.cpp
PROPERTY COMPILE_DEFINITIONS MODULEDIR="${MODULEDIR}";BUILTIN_MODULES=${BUILTIN_MODULES})
-set_target_properties(libproxy PROPERTIES PREFIX "" VERSION 1.0.0 SOVERSION 1)
+set_target_properties(libproxy PROPERTIES PREFIX "" VERSION ${LIBproxy_VERSION})
install(TARGETS libproxy DESTINATION ${LIB_INSTALL_DIR})
install(FILES proxy.h DESTINATION ${INCLUDE_INSTALL_DIR})