[CMAKE/CLANG]
authorAmine Khaldi <amine.khaldi@reactos.org>
Wed, 10 Sep 2014 19:00:53 +0000 (19:00 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Wed, 10 Sep 2014 19:00:53 +0000 (19:00 +0000)
* Do not add PIC and PIE related flags.
CORE-8516

svn path=/trunk/; revision=64111

reactos/cmake/gcc.cmake

index e69977e..7cf984e 100644 (file)
@@ -37,6 +37,12 @@ if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
     set(CMAKE_STATIC_LIBRARY_SUFFIX ".a")
     set(CMAKE_LINK_LIBRARY_SUFFIX "")
     set(CMAKE_CREATE_WIN32_EXE "")
+    set(CMAKE_C_COMPILE_OPTIONS_PIC "")
+    set(CMAKE_CXX_COMPILE_OPTIONS_PIC "")
+    set(CMAKE_C_COMPILE_OPTIONS_PIE "")
+    set(CMAKE_CXX_COMPILE_OPTIONS_PIE "")
+    set(CMAKE_SHARED_LIBRARY_C_FLAGS "")
+    set(CMAKE_SHARED_LIBRARY_CXX_FLAGS "")
 endif()
 
 if(DBG)