Skip to content

Commit c45288f

Browse files
author
Tor Didriksen
committed
Bug#29041505 BACKPORT TO 5.7: BUNDLED LIBEVENT IS OUTDATED
Post-push fix: ensure that libevent is always built with -fPIC Change-Id: If7bcee4ee699b018c1b041eccf565ab5402781fc
1 parent 3e03835 commit c45288f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

extra/libevent/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ else()
2424
cmake_minimum_required(VERSION 2.8.0 FATAL_ERROR)
2525
endif()
2626

27+
# This is only used by plugins, so we need -fPIC
28+
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_SHARED_LIBRARY_C_FLAGS}")
29+
2730
# if(NOT CMAKE_BUILD_TYPE)
2831
# set(CMAKE_BUILD_TYPE Release
2932
# CACHE STRING "Set build type to Debug o Release (default Release)" FORCE)

0 commit comments

Comments
 (0)