summaryrefslogtreecommitdiff
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
parent90bbc21d02b9cdc7e074884812950d27e015c2ac (diff)
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 e06022d..29277f6 100644
--- a/m4/efl_threads.m4
+++ b/m4/efl_threads.m4
@@ -50,6 +50,7 @@ dnl check if the compiler supports POSIX threads
50if test "x${_efl_have_posix_threads}" = "xyes" ; then 50if test "x${_efl_have_posix_threads}" = "xyes" ; then
51 51
52 SAVE_LIBS=${LIBS} 52 SAVE_LIBS=${LIBS}
53 SAVE_CFLAGS=${CFLAGS}
53 LIBS="${LIBS} ${LIBMULTITHREAD}" 54 LIBS="${LIBS} ${LIBMULTITHREAD}"
54 AC_LINK_IFELSE( 55 AC_LINK_IFELSE(
55 [AC_LANG_PROGRAM([[ 56 [AC_LANG_PROGRAM([[
@@ -101,6 +102,7 @@ efl_have_posix_threads_spinlock="no"
101 102
102if test "x${_efl_have_posix_threads}" = "xyes" ; then 103if test "x${_efl_have_posix_threads}" = "xyes" ; then
103 SAVE_LIBS=${LIBS} 104 SAVE_LIBS=${LIBS}
105 SAVE_CFLAGS=${CFLAGS}
104 LIBS="${LIBS} ${LIBMULTITHREAD}" 106 LIBS="${LIBS} ${LIBMULTITHREAD}"
105 AC_LINK_IFELSE( 107 AC_LINK_IFELSE(
106 [AC_LANG_PROGRAM([[ 108 [AC_LANG_PROGRAM([[