Skip to content

Commit

Permalink
Try to fix LIBNGHTTP2 link failure
Browse files Browse the repository at this point in the history
  • Loading branch information
LocutusOfBorg committed Jul 29, 2020
1 parent 3f7f2c4 commit 49973f6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bundled_deps/curl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ set(EXPORT_CC ${CMAKE_C_COMPILER})
# and the like.
set(EXPORT_C_FLAGS ${CMAKE_C_FLAGS} -fPIC)

set(EXPORT_LD_FLAGS ${CMAKE_THREAD_LIBS_INIT} ${LIBNGHTTP2_LDFLAGS})
set(EXPORT_LD_FLAGS ${CMAKE_THREAD_LIBS_INIT})

if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
set(EXPORT_C_FLAGS "${EXPORT_C_FLAGS} ${CMAKE_C_FLAGS_DEBUG}")
Expand Down
6 changes: 2 additions & 4 deletions cmake/Modules/FindLIBNGHTTP2.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@

find_package(PkgConfig)
include(FindPkgConfig)
pkg_check_modules(PC_LIBNGHTTP2 libnghttp2)
if(PC_LIBNGHTTP2_FOUND)
pkg_check_modules(LIBNGHTTP2 libnghttp2)
if(LIBNGHTTP2_FOUND)
set(LIBNGHTTP2_FOUND TRUE)
set(LIBNGHTTP2_LDFLAGS ${PC_LIBNGHTTP2_LDFLGAS})
set(LIBNGHTTP2_LIBRARIES ${PC_LIBNGHTTP2_LIBRARIES})
endif()

include(FindPackageHandleStandardArgs)
Expand Down
2 changes: 1 addition & 1 deletion plug-ins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ if(HAVE_PCRE)
add_library(sslstrip MODULE sslstrip/sslstrip.c)
include_directories(${CURL_INCLUDE_DIR} ${PCRE_INCLUDE_DIR})
add_dependencies(sslstrip curl)
target_link_libraries(sslstrip ${CURL_LIBRARY} ${PCRE_LIBRARY})
target_link_libraries(sslstrip ${CURL_LIBRARY} ${PCRE_LIBRARY} ${LIBNGHTTP2_LIBRARIES})
target_link_libraries(sslstrip lib_ettercap)
set_target_properties(sslstrip PROPERTIES PREFIX "ec_")
install(TARGETS sslstrip
Expand Down

0 comments on commit 49973f6

Please sign in to comment.