19c887e138
From @Habbie on GitHub. Closes NetBSD/pkgsrc#56 Changes: 2.2.6 2019-08-13 17:00:00+0000 - [security fix][http2] fix HTTP/2 DoS attack vectors CVE-2019-9512 CVE-2019-9514 CVE-2019-9515 #2090 (Kazuho Oku)
30 lines
1.1 KiB
Text
30 lines
1.1 KiB
Text
$NetBSD: patch-CMakeLists.txt,v 1.1 2020/03/21 14:16:04 nia Exp $
|
|
|
|
https://github.com/h2o/h2o/pull/2196
|
|
|
|
--- CMakeLists.txt.orig 2019-08-12 14:09:44.000000000 +0000
|
|
+++ CMakeLists.txt
|
|
@@ -386,13 +386,21 @@ SET_TARGET_PROPERTIES(libh2o PROPERTIES
|
|
OUTPUT_NAME h2o
|
|
VERSION ${LIBRARY_VERSION}
|
|
SOVERSION ${LIBRARY_SOVERSION})
|
|
-TARGET_LINK_LIBRARIES(libh2o ${LIBUV_LIBRARIES} ${EXTRA_LIBS})
|
|
+IF (WSLAY_FOUND)
|
|
+ TARGET_LINK_LIBRARIES(libh2o ${WSLAY_LIBRARIES} ${LIBUV_LIBRARIES} ${EXTRA_LIBS})
|
|
+ELSE ()
|
|
+ TARGET_LINK_LIBRARIES(libh2o ${LIBUV_LIBRARIES} ${EXTRA_LIBS})
|
|
+ENDIF (WSLAY_FOUND)
|
|
SET_TARGET_PROPERTIES(libh2o-evloop PROPERTIES
|
|
OUTPUT_NAME h2o-evloop
|
|
COMPILE_FLAGS "-DH2O_USE_LIBUV=0"
|
|
VERSION ${LIBRARY_VERSION}
|
|
SOVERSION ${LIBRARY_SOVERSION})
|
|
-TARGET_LINK_LIBRARIES(libh2o-evloop ${EXTRA_LIBS})
|
|
+IF (WSLAY_FOUND)
|
|
+ TARGET_LINK_LIBRARIES(libh2o-evloop ${WSLAY_LIBRARIES} ${EXTRA_LIBS})
|
|
+ELSE ()
|
|
+ TARGET_LINK_LIBRARIES(libh2o-evloop ${EXTRA_LIBS})
|
|
+ENDIF (WSLAY_FOUND)
|
|
|
|
IF (OPENSSL_FOUND)
|
|
TARGET_INCLUDE_DIRECTORIES(libh2o PUBLIC ${OPENSSL_INCLUDE_DIR})
|