Bump to 17.31.23
[platform/upstream/libzypp.git] / packaging / add_pie_compile_option.patch
1 diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt
2 index 97b28ceed..634778706 100644
3 --- a/tools/CMakeLists.txt
4 +++ b/tools/CMakeLists.txt
5 @@ -1,4 +1,6 @@
6  ## ############################################################
7 +SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
8 +SET (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pie")
9
10  FILE( GLOB ALLCC RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.cc" )
11  STRING( REPLACE ".cc" ";" APLLPROG ${ALLCC} )