Reviewed by Antonio Gomes.
[EFL] Fix double addition of -fPIC
https://bugs.webkit.org/show_bug.cgi?id=45122
When SHARED_CORE=ON, -fPIC is automatically added because all
libraries are dynamic. Only when static libraries are built that
-fPIC needs to be manually inserted (because the final library,
libewebkit.so, is dynamic).
* cmake/OptionsCommon.cmake: Remove -fPIC flag.
* cmake/WebKitHelpers.cmake: Add -fPIC flags iff SHARED_CORE=ON.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@66714
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2010-09-02 Lucas De Marchi <lucas.demarchi@profusion.mobi>
+
+ Reviewed by Antonio Gomes.
+
+ [EFL] Fix double addition of -fPIC
+ https://bugs.webkit.org/show_bug.cgi?id=45122
+
+ When SHARED_CORE=ON, -fPIC is automatically added because all
+ libraries are dynamic. Only when static libraries are built that
+ -fPIC needs to be manually inserted (because the final library,
+ libewebkit.so, is dynamic).
+
+ * cmake/OptionsCommon.cmake: Remove -fPIC flag.
+ * cmake/WebKitHelpers.cmake: Add -fPIC flags iff SHARED_CORE=ON.
+
2010-09-01 Ryuan Choi <ryuan.choi@samsung.com>
Reviewed by Antonio Gomes.
ADD_DEFINITIONS(-DBUILDING_WITH_CMAKE=1)
ADD_DEFINITIONS(-DHAVE_CONFIG_H=1)
-IF (CMAKE_COMPILER_IS_GNUCC)
- SET(CMAKE_CXX_FLAGS "-fPIC ${CMAKE_CXX_FLAGS}")
- SET(CMAKE_C_FLAGS "-fPIC ${CMAKE_C_FLAGS}")
-ENDIF ()
-
SET(WTF_INCLUDE_DIRECTORIES
"${JAVASCRIPTCORE_DIR}"
"${JAVASCRIPTCORE_DIR}/wtf"
COMPILE_FLAGS "-fno-exceptions -fstrict-aliasing ${OLD_COMPILE_FLAGS}")
ELSE ()
SET_TARGET_PROPERTIES (${_target} PROPERTIES
- COMPILE_FLAGS "-fno-exceptions -fstrict-aliasing -fvisibility=hidden ${OLD_COMPILE_FLAGS}")
+ COMPILE_FLAGS "-fPIC -fno-exceptions -fstrict-aliasing -fvisibility=hidden ${OLD_COMPILE_FLAGS}")
ENDIF ()
UNSET(OLD_COMPILE_FLAGS)
ENDIF ()