ce4c6752ca40ec96564ed709cdd68b3f786fdca4
[feed/packages.git] / net / miniupnpc / patches / 100-no-fPIC.patch
1 --- a/CMakeLists.txt
2 +++ b/CMakeLists.txt
3 @@ -39,12 +39,6 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
4 target_compile_definitions(miniupnpc-private INTERFACE _DARWIN_C_SOURCE)
5 endif ()
6
7 -# Set compiler specific build flags
8 -if (CMAKE_COMPILER_IS_GNUCC AND NOT CMAKE_SYSTEM_NAME STREQUAL "AmigaOS")
9 - set(CMAKE_POSITION_INDEPENDENT_CODE ON)
10 - target_compile_options(miniupnpc-private INTERFACE -Wall)
11 -endif ()
12 -
13 # Suppress noise warnings
14 if (MSVC)
15 target_compile_definitions(miniupnpc-private INTERFACE _CRT_SECURE_NO_WARNINGS)