diff options
author | Stefan Schmidt <s.schmidt@samsung.com> | 2014-08-08 16:01:45 +0200 |
---|---|---|
committer | Stefan Schmidt <s.schmidt@samsung.com> | 2014-08-08 16:01:45 +0200 |
commit | 0fd59a8aec3ba48b1ef964c69ca6700c9305c218 (patch) | |
tree | 23fb3c982a199e479412b79fe7df9a170298b06b | |
parent | 8be5e9bba1a6f901b34e3a30c2e7caddaea7301f (diff) | |
download | elementary-0fd59a8aec3ba48b1ef964c69ca6700c9305c218.tar.gz |
configure: Use the same default CFLAGS/LDFLAGS as we do for EFL
Especially the -fvisibility=hidden would be needed here for our EAPI handling.
I never realised we miss this here but Lukasz Stanislawski pointed me to it
when we wondered why it linked ofr him with missing EAPI but not for me.
I'v compiling and releasing elm like this for a long time now so I don't
expect any trouble but if something strange comes up we can still revert it
before 1.11 final.
-rw-r--r-- | configure.ac | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 21b7e2c14..5d32247b6 100644 --- a/configure.ac +++ b/configure.ac @@ -99,6 +99,10 @@ AM_CONDITIONAL([HAVE_FREEBSD], [test "x${have_freebsd}" = "xyes"]) AC_SUBST([default_engine]) AC_DEFINE_UNQUOTED([DEFAULT_ENGINE], ["$default_engine"], ["Default engine according to host"]) + +EFL_COMPILER_FLAG([-Wall -Wextra -Wpointer-arith -Wno-missing-field-initializers -fvisibility=hidden -fdata-sections -ffunction-sections]) +EFL_LINKER_FLAG([-fvisibility=hidden -fdata-sections -ffunction-sections -Wl,--gc-sections -fno-strict-aliasing -Wl,--as-needed -Wl,--no-copy-dt-needed-entries]) + m4_ifdef([v_mic], [ EFL_COMPILER_FLAG([-Wshadow]) |