From: caro Date: Wed, 23 Jun 2010 15:49:50 +0000 (+0000) Subject: fix linking with mingw X-Git-Tag: 2.0_alpha~194^2~911 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0066318e4602c25ee00a59ba490f46fe9aaeaa3f;p=framework%2Fuifw%2Fecore.git fix linking with mingw git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@49817 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/m4/efl_pthread.m4 b/m4/efl_pthread.m4 index 1894ad7..b90a045 100644 --- a/m4/efl_pthread.m4 +++ b/m4/efl_pthread.m4 @@ -51,8 +51,8 @@ if test "x${_efl_enable_pthread}" = "xyes" || test "x${_efl_enable_pthread}" = " SAVE_CFLAGS=${CFLAGS} CFLAGS="${CFLAGS} ${_efl_pthread_cflags}" - SAVE_LDFLAGS=${LDFLAGS} - LDFLAGS="${LDFLAGS} ${_efl_pthread_libs}" + SAVE_LIBS=${LIBS} + LIBS="${LIBS} ${_efl_pthread_libs}" AC_LINK_IFELSE( [AC_LANG_PROGRAM([[ #include @@ -64,7 +64,7 @@ id = pthread_self(); [_efl_have_pthread="yes"], [_efl_have_pthread="no"]) CFLAGS=${SAVE_CFLAGS} - LDFLAGS=${SAVE_LDFLAGS} + LIBS=${SAVE_LIBS} fi @@ -96,8 +96,8 @@ if test "x${_efl_have_pthread}" = "xyes" && test "x$1" = "xyes" ; then SAVE_CFLAGS=${CFLAGS} CFLAGS="${CFLAGS} ${EFL_PTHREAD_CFLAGS}" - SAVE_LDFLAGS=${LDFLAGS} - LDFLAGS="${LDFLAGS} ${EFL_PTHREAD_LIBS}" + SAVE_LIBS=${LIBS} + LIBS="${LIBS} ${EFL_PTHREAD_LIBS}" AC_LINK_IFELSE( [AC_LANG_PROGRAM([[ #include @@ -110,7 +110,7 @@ res = pthread_spin_init(&lock, PTHREAD_PROCESS_PRIVATE); [_efl_have_pthread_spinlock="yes"], [_efl_have_pthread_spinlock="no"]) CFLAGS=${SAVE_CFLAGS} - LDFLAGS=${SAVE_LDFLAGS} + LIBS=${SAVE_LIBS} fi