summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2012-12-30 18:37:59 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2012-12-30 18:37:59 +0000
commitec75e2048658aaef795f318ca78ecf349add4696 (patch)
treeeefd86548f7720f41d5a05ccf0867d4f17e88079 /configure.ac
parent64fa645e8025300270059808bcab9f618135875a (diff)
efl: add compiler flags
* -fvisibility=hidden will hide symbols not marked with EAPI in the final binary (so/executable). * -ffunction-sections and -fdata-sections will split those into independent elf sections, then we can -Wl,--gc-sections for those that are unused. During development --Wl,--print-gc-sections will warn us of functions that are left unused and were collected. SVN revision: 81906
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index b80a6bfd5d..61a2fbb11c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -424,11 +424,12 @@ AC_CHECK_TYPES([siginfo_t], [], [],
424 424
425AC_C_BIGENDIAN 425AC_C_BIGENDIAN
426AC_C_INLINE 426AC_C_INLINE
427EFL_CHECK_COMPILER_FLAGS([EFL], [-Wall -Wextra -Wpointer-arith -Wno-missing-field-initializers]) 427EFL_CHECK_COMPILER_FLAGS([EFL], [-Wall -Wextra -Wpointer-arith -Wno-missing-field-initializers -fvisibility=hidden -fdata-sections -ffunction-sections])
428EFL_CHECK_LINKER_FLAGS([EFL], [-fno-strict-aliasing -Wl,--as-needed]) 428EFL_CHECK_LINKER_FLAGS([EFL], [-fvisibility=hidden -fdata-sections -ffunction-sections -Wl,--gc-sections -fno-strict-aliasing -Wl,--as-needed])
429case "${build_profile}" in 429case "${build_profile}" in
430 dev) 430 dev)
431 EFL_CHECK_COMPILER_FLAGS([EFL], [-Wshadow]) 431 EFL_CHECK_COMPILER_FLAGS([EFL], [-Wshadow])
432 EFL_CHECK_LINKER_FLAGS([EFL], [-Wl,--print-gc-sections])
432 ;; 433 ;;
433 434
434 debug) 435 debug)