aboutsummaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2013-11-14 05:55:10 +0100
committerSebastian Dransfeld <sd@tango.flipp.net>2013-11-14 05:55:10 +0100
commit9a9222e3fc7398dbffa291fe74797fc3b3366605 (patch)
treea1c1f14789ecf4a5f068f8fc30fb91c67ee912c9 /m4
parentevas_gl : Fixed macro substitution bug in evas_gl (diff)
downloadefl-9a9222e3fc7398dbffa291fe74797fc3b3366605.tar.gz
m4: Save cflags before restoring them
If we do CFLAGS=${SAVE_CFLAGS}, it is important to do SAVE_CFLAGS=${CFLAGS} first...
Diffstat (limited to 'm4')
-rw-r--r--m4/efl_threads.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/m4/efl_threads.m4 b/m4/efl_threads.m4
index e06022d037..29277f68e3 100644
--- a/m4/efl_threads.m4
+++ b/m4/efl_threads.m4
@@ -50,6 +50,7 @@ dnl check if the compiler supports POSIX threads
if test "x${_efl_have_posix_threads}" = "xyes" ; then
SAVE_LIBS=${LIBS}
+ SAVE_CFLAGS=${CFLAGS}
LIBS="${LIBS} ${LIBMULTITHREAD}"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([[
@@ -101,6 +102,7 @@ efl_have_posix_threads_spinlock="no"
if test "x${_efl_have_posix_threads}" = "xyes" ; then
SAVE_LIBS=${LIBS}
+ SAVE_CFLAGS=${CFLAGS}
LIBS="${LIBS} ${LIBMULTITHREAD}"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([[