* eina: also update ldflags instead of cflags.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 14 Dec 2010 16:20:48 +0000 (16:20 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 14 Dec 2010 16:20:48 +0000 (16:20 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@55555 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

m4/efl_compiler_flag.m4

index 618c6a6..25c285d 100644 (file)
@@ -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])