1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 03:43:12 +02:00

Build with -fPIC.

This commit is contained in:
Sadie Powell
2026-06-14 12:44:49 +01:00
parent 44b7493eb1
commit d60c80a4a3
+5
View File
@@ -25,6 +25,7 @@ include(CheckFunctionExists)
include(CheckTypeSize)
include(CheckLibraryExists)
include(CheckCXXCompilerFlag)
include(CheckPIESupported)
if(NOT WIN32)
include(FindPkgConfig)
@@ -40,6 +41,10 @@ if(EXTRA_LIBS)
link_directories(${EXTRA_LIBS})
endif()
# Enable -fPIC for all targets.
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
check_pie_supported()
# Find gettext
find_package(Gettext)
find_package(Intl)