Revert the cmake patch again and use LDFLAGS. We want to make sure libbind

is used to prevent conflicts.
This commit is contained in:
ajacoutot 2016-10-07 12:59:42 +00:00
parent be66232597
commit b063195057
2 changed files with 5 additions and 32 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.25 2016/10/07 10:05:16 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.26 2016/10/07 12:59:42 ajacoutot Exp $
COMMENT= network analysis and security monitoring framework
DISTNAME= bro-2.4.1
REVISION= 6
REVISION= 7
SHARED_LIBS += broccoli 5.1 # 5.1
@ -48,6 +48,9 @@ RUN_DEPENDS += net/curl
CONFIGURE_STYLE= simple
CONFIGURE_ENV= LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib/libbind \
-lbind -Wl,-rpath ${LOCALBASE}/lib/libbind"
CONFIGURE_ARGS= --prefix=${PREFIX} \
--conf-files-dir=${SYSCONFDIR}/bro \
--localstatedir=${LOCALSTATEDIR} \

View File

@ -1,30 +0,0 @@
$OpenBSD: patch-cmake_FindBIND_cmake,v 1.3 2016/09/07 14:50:18 dcoppa Exp $
--- cmake/FindBIND.cmake.orig Wed Sep 7 15:50:55 2016
+++ cmake/FindBIND.cmake Wed Sep 7 15:56:10 2016
@@ -33,6 +33,8 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
# exported in the shared library (strangely)
# see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=291609
set(bind_libs none libresolv.a resolv bind)
+elseif (${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
+ set(bind_libs bind)
else ()
set(bind_libs none resolv bind)
endif ()
@@ -45,8 +47,16 @@ foreach (bindlib ${bind_libs})
if (NOT ${bindlib} MATCHES "none")
find_library(BIND_LIBRARY
NAMES ${bindlib}
- HINTS ${BIND_ROOT_DIR}/lib
+ if (${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
+ HINTS ${BIND_ROOT_DIR}/lib/libbind
+ else ()
+ HINTS ${BIND_ROOT_DIR}/lib
+ endif ()
)
+ endif ()
+
+ if (${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
+ link_directories(${BIND_ROOT_DIR}/lib/libbind)
endif ()
set(CMAKE_REQUIRED_LIBRARIES ${BIND_LIBRARY})