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])
AC_MSG_RESULT([${have_flag}])
if test "x${have_flag}" = "xno" ; then
- CFLAGS="${CFLAGS_save}"
+ LDFLAGS="${LDFLAGS_save}"
fi
AC_LANG_POP([C])