diff options
author | Cedric BAIL <cedric.bail@free.fr> | 2010-12-14 16:20:48 +0000 |
---|---|---|
committer | Cedric BAIL <cedric.bail@free.fr> | 2010-12-14 16:20:48 +0000 |
commit | 255446a745defab436049c1178ab826f899b7084 (patch) | |
tree | e2be1b11e5341992463614352cb93e9c8a523f99 /m4 | |
parent | 36513740ab745d77c12d165a44bac17c6d0429e0 (diff) | |
download | eina-255446a745defab436049c1178ab826f899b7084.tar.gz |
* eina: also update ldflags instead of cflags.
SVN revision: 55555
Diffstat (limited to 'm4')
-rw-r--r-- | m4/efl_compiler_flag.m4 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/m4/efl_compiler_flag.m4 b/m4/efl_compiler_flag.m4 index 618c6a6..25c285d 100644 --- a/m4/efl_compiler_flag.m4 +++ b/m4/efl_compiler_flag.m4 @@ -32,13 +32,13 @@ AC_LANG_POP([C]) dnl Macro that checks if a linker flag is supported by the compiler. dnl Usage: EFL_LINKER_FLAG(flag) -dnl flag is added to CFLAGS if supported (will be passed to ld anyway). +dnl flag is added to LDFLAGS if supported (will be passed to ld anyway). AC_DEFUN([EFL_LINKER_FLAG], [ -CFLAGS_save="${CFLAGS}" -CFLAGS="${CFLAGS} $1" +LDFLAGS_save="${LDFLAGS}" +LDFLAGS="${LDFLAGS} $1" AC_LANG_PUSH([C]) AC_MSG_CHECKING([whether the compiler supports $1]) @@ -50,7 +50,7 @@ AC_LINK_IFELSE( AC_MSG_RESULT([${have_flag}]) if test "x${have_flag}" = "xno" ; then - CFLAGS="${CFLAGS_save}" + LDFLAGS="${LDFLAGS_save}" fi AC_LANG_POP([C]) |