remove -lpthread check from gcc-4.2.1 (really only necessary for Mac OS X, which does not have a libpthread)
This commit is contained in:
parent
b6af1d4b85
commit
a3b756c312
|
@ -0,0 +1,115 @@
|
||||||
|
diff --git a/libgomp/configure b/libgomp/configure
|
||||||
|
index af4254c..eee4673 100755
|
||||||
|
--- a/libgomp/configure
|
||||||
|
+++ b/libgomp/configure
|
||||||
|
@@ -8462,110 +8462,6 @@ fi
|
||||||
|
# ----------------- done all checks, emit header -------------
|
||||||
|
ac_config_commands="$ac_config_commands gstdint.h"
|
||||||
|
|
||||||
|
-
|
||||||
|
-
|
||||||
|
-
|
||||||
|
-# Check to see if -pthread or -lpthread is needed. Prefer the former.
|
||||||
|
-# In case the pthread.h system header is not found, this test will fail.
|
||||||
|
-XPCFLAGS=""
|
||||||
|
-CFLAGS="$CFLAGS -pthread"
|
||||||
|
-cat >conftest.$ac_ext <<_ACEOF
|
||||||
|
-/* confdefs.h. */
|
||||||
|
-_ACEOF
|
||||||
|
-cat confdefs.h >>conftest.$ac_ext
|
||||||
|
-cat >>conftest.$ac_ext <<_ACEOF
|
||||||
|
-/* end confdefs.h. */
|
||||||
|
-#include <pthread.h>
|
||||||
|
- void *g(void *d) { return NULL; }
|
||||||
|
-int
|
||||||
|
-main ()
|
||||||
|
-{
|
||||||
|
-pthread_t t; pthread_create(&t,NULL,g,NULL);
|
||||||
|
- ;
|
||||||
|
- return 0;
|
||||||
|
-}
|
||||||
|
-_ACEOF
|
||||||
|
-rm -f conftest.$ac_objext conftest$ac_exeext
|
||||||
|
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
||||||
|
- (eval $ac_link) 2>conftest.er1
|
||||||
|
- ac_status=$?
|
||||||
|
- grep -v '^ *+' conftest.er1 >conftest.err
|
||||||
|
- rm -f conftest.er1
|
||||||
|
- cat conftest.err >&5
|
||||||
|
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
- (exit $ac_status); } &&
|
||||||
|
- { ac_try='test -z "$ac_c_werror_flag"
|
||||||
|
- || test ! -s conftest.err'
|
||||||
|
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||||
|
- (eval $ac_try) 2>&5
|
||||||
|
- ac_status=$?
|
||||||
|
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
- (exit $ac_status); }; } &&
|
||||||
|
- { ac_try='test -s conftest$ac_exeext'
|
||||||
|
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||||
|
- (eval $ac_try) 2>&5
|
||||||
|
- ac_status=$?
|
||||||
|
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
- (exit $ac_status); }; }; then
|
||||||
|
- XPCFLAGS=" -Wc,-pthread"
|
||||||
|
-else
|
||||||
|
- echo "$as_me: failed program was:" >&5
|
||||||
|
-sed 's/^/| /' conftest.$ac_ext >&5
|
||||||
|
-
|
||||||
|
-CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
|
||||||
|
- cat >conftest.$ac_ext <<_ACEOF
|
||||||
|
-/* confdefs.h. */
|
||||||
|
-_ACEOF
|
||||||
|
-cat confdefs.h >>conftest.$ac_ext
|
||||||
|
-cat >>conftest.$ac_ext <<_ACEOF
|
||||||
|
-/* end confdefs.h. */
|
||||||
|
-#include <pthread.h>
|
||||||
|
- void *g(void *d) { return NULL; }
|
||||||
|
-int
|
||||||
|
-main ()
|
||||||
|
-{
|
||||||
|
-pthread_t t; pthread_create(&t,NULL,g,NULL);
|
||||||
|
- ;
|
||||||
|
- return 0;
|
||||||
|
-}
|
||||||
|
-_ACEOF
|
||||||
|
-rm -f conftest.$ac_objext conftest$ac_exeext
|
||||||
|
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
||||||
|
- (eval $ac_link) 2>conftest.er1
|
||||||
|
- ac_status=$?
|
||||||
|
- grep -v '^ *+' conftest.er1 >conftest.err
|
||||||
|
- rm -f conftest.er1
|
||||||
|
- cat conftest.err >&5
|
||||||
|
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
- (exit $ac_status); } &&
|
||||||
|
- { ac_try='test -z "$ac_c_werror_flag"
|
||||||
|
- || test ! -s conftest.err'
|
||||||
|
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||||
|
- (eval $ac_try) 2>&5
|
||||||
|
- ac_status=$?
|
||||||
|
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
- (exit $ac_status); }; } &&
|
||||||
|
- { ac_try='test -s conftest$ac_exeext'
|
||||||
|
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||||
|
- (eval $ac_try) 2>&5
|
||||||
|
- ac_status=$?
|
||||||
|
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
- (exit $ac_status); }; }; then
|
||||||
|
- :
|
||||||
|
-else
|
||||||
|
- echo "$as_me: failed program was:" >&5
|
||||||
|
-sed 's/^/| /' conftest.$ac_ext >&5
|
||||||
|
-
|
||||||
|
-{ { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
|
||||||
|
-echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
|
||||||
|
- { (exit 1); exit 1; }; }
|
||||||
|
-fi
|
||||||
|
-rm -f conftest.err conftest.$ac_objext \
|
||||||
|
- conftest$ac_exeext conftest.$ac_ext
|
||||||
|
-fi
|
||||||
|
-rm -f conftest.err conftest.$ac_objext \
|
||||||
|
- conftest$ac_exeext conftest.$ac_ext
|
||||||
|
-
|
||||||
|
# Check for functions needed.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue