parent
12f221e1db
commit
1d24e04008
@ -0,0 +1,30 @@
|
|||||||
|
diff --git a/src/cmd/CMakeLists.txt b/src/cmd/CMakeLists.txt
|
||||||
|
index abb3620..5702702 100644
|
||||||
|
--- a/src/cmd/CMakeLists.txt
|
||||||
|
+++ b/src/cmd/CMakeLists.txt
|
||||||
|
@@ -10,8 +10,8 @@ set(cmd_SRC
|
||||||
|
|
||||||
|
|
||||||
|
if(UNIX AND NOT APPLE)
|
||||||
|
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIE")
|
||||||
|
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIE")
|
||||||
|
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
|
||||||
|
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
|
||||||
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pie")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt
|
||||||
|
index 2f1e99e..54a143c 100644
|
||||||
|
--- a/src/gui/CMakeLists.txt
|
||||||
|
+++ b/src/gui/CMakeLists.txt
|
||||||
|
@@ -250,8 +250,8 @@ endif()
|
||||||
|
ecm_add_app_icon(final_src ICONS "${OWNCLOUD_ICONS}" SIDEBAR_ICONS "${OWNCLOUD_SIDEBAR_ICONS}" OUTFILE_BASENAME "${APPLICATION_ICON_NAME}")
|
||||||
|
|
||||||
|
if(UNIX AND NOT APPLE)
|
||||||
|
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIE")
|
||||||
|
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIE")
|
||||||
|
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
|
||||||
|
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
|
||||||
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pie")
|
||||||
|
endif()
|
||||||
|
|
Loading…
Reference in new issue