Title: [136854] trunk
- Revision
- 136854
- Author
- [email protected]
- Date
- 2012-12-06 10:18:31 -0800 (Thu, 06 Dec 2012)
Log Message
[EFL] Optimize binary size by removing dead sections on unix/gcc
https://bugs.webkit.org/show_bug.cgi?id=102827
Patch by Laszlo Gombos <[email protected]> on 2012-12-06
Reviewed by Kenneth Rohde Christiansen.
Turn on -ffunction-sections -fdata-sections --gc-section flags
on unix for the gcc toolchain for release builds to optimize binary
size for the Efl port.
* Source/cmake/OptionsEfl.cmake:
Modified Paths
Diff
Modified: trunk/ChangeLog (136853 => 136854)
--- trunk/ChangeLog 2012-12-06 18:10:02 UTC (rev 136853)
+++ trunk/ChangeLog 2012-12-06 18:18:31 UTC (rev 136854)
@@ -1,3 +1,16 @@
+2012-12-06 Laszlo Gombos <[email protected]>
+
+ [EFL] Optimize binary size by removing dead sections on unix/gcc
+ https://bugs.webkit.org/show_bug.cgi?id=102827
+
+ Reviewed by Kenneth Rohde Christiansen.
+
+ Turn on -ffunction-sections -fdata-sections --gc-section flags
+ on unix for the gcc toolchain for release builds to optimize binary
+ size for the Efl port.
+
+ * Source/cmake/OptionsEfl.cmake:
+
2012-12-06 Seokju Kwon <[email protected]>
[EFL] Fix destination path in Source/PlatformEfl.cmake
Modified: trunk/Source/cmake/OptionsEfl.cmake (136853 => 136854)
--- trunk/Source/cmake/OptionsEfl.cmake 2012-12-06 18:10:02 UTC (rev 136853)
+++ trunk/Source/cmake/OptionsEfl.cmake 2012-12-06 18:18:31 UTC (rev 136854)
@@ -177,6 +177,13 @@
set(CPACK_SOURCE_GENERATOR TBZ2)
+# Optimize binary size for release builds by removing dead sections on unix/gcc
+if (CMAKE_BUILD_TYPE STREQUAL Release AND CMAKE_COMPILER_IS_GNUCC AND UNIX AND NOT APPLE)
+ set(CMAKE_C_FLAGS "-ffunction-sections -fdata-sections ${CMAKE_C_FLAGS}")
+ set(CMAKE_CXX_FLAGS "-ffunction-sections -fdata-sections ${CMAKE_CXX_FLAGS}")
+ set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--gc-sections ${CMAKE_SHARED_LINKER_FLAGS}")
+endif ()
+
if (WTF_USE_TILED_BACKING_STORE)
add_definitions(-DWTF_USE_ACCELERATED_COMPOSITING=1)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes