configure: Use the same default CFLAGS/LDFLAGS as we do for EFL
authorStefan Schmidt <s.schmidt@samsung.com>
Fri, 8 Aug 2014 14:01:45 +0000 (16:01 +0200)
committerStefan Schmidt <s.schmidt@samsung.com>
Fri, 8 Aug 2014 14:01:45 +0000 (16:01 +0200)
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.

configure.ac

index 21b7e2c..5d32247 100644 (file)
@@ -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])