forked from enlightenment/efl
* eina: also update ldflags instead of cflags.
SVN revision: 55555
This commit is contained in:
parent
77cb7b50d6
commit
e6b5488d1d
|
@ -32,13 +32,13 @@ AC_LANG_POP([C])
|
||||||
dnl Macro that checks if a linker flag is supported by the compiler.
|
dnl Macro that checks if a linker flag is supported by the compiler.
|
||||||
|
|
||||||
dnl Usage: EFL_LINKER_FLAG(flag)
|
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],
|
AC_DEFUN([EFL_LINKER_FLAG],
|
||||||
[
|
[
|
||||||
|
|
||||||
CFLAGS_save="${CFLAGS}"
|
LDFLAGS_save="${LDFLAGS}"
|
||||||
CFLAGS="${CFLAGS} $1"
|
LDFLAGS="${LDFLAGS} $1"
|
||||||
|
|
||||||
AC_LANG_PUSH([C])
|
AC_LANG_PUSH([C])
|
||||||
AC_MSG_CHECKING([whether the compiler supports $1])
|
AC_MSG_CHECKING([whether the compiler supports $1])
|
||||||
|
@ -50,7 +50,7 @@ AC_LINK_IFELSE(
|
||||||
AC_MSG_RESULT([${have_flag}])
|
AC_MSG_RESULT([${have_flag}])
|
||||||
|
|
||||||
if test "x${have_flag}" = "xno" ; then
|
if test "x${have_flag}" = "xno" ; then
|
||||||
CFLAGS="${CFLAGS_save}"
|
LDFLAGS="${LDFLAGS_save}"
|
||||||
fi
|
fi
|
||||||
AC_LANG_POP([C])
|
AC_LANG_POP([C])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue