summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2011-08-17 21:39:25 +0400
committerIvan Maidanski <ivmai@mail.ru>2011-09-21 14:08:45 +0400
commit414aff0463b8eb451f174e2a8d3908ca1444bbb2 (patch)
tree166112e8643e7a4b98f1521b1923d1e8346e0c81
parente14f968187fd70901d37c09a2417127f727fffcb (diff)
downloadlibatomic_ops-414aff0463b8eb451f174e2a8d3908ca1444bbb2.tar.gz
Do not pass -fPIC to Cygwin gcc.
(Apply commit 85c025e) * configure.ac (PICFLAG): Set to -fPIC if GCC but not Gygwin.
-rw-r--r--configure.ac11
1 files changed, 9 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 340b676..bfc5acd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,13 +23,20 @@ need_asm=false
PICFLAG=
AC_MSG_CHECKING(Determining PIC compiler flag)
if test "$GCC" = yes; then
- AC_MSG_RESULT(-fPIC)
- PICFLAG=-fPIC
case "$host" in
*-*-solaris*)
+ AC_MSG_RESULT(-fPIC)
+ PICFLAG=-fPIC
# Workaround: at least GCC 3.4.6 does not define this macro.
CFLAGS="$CFLAGS -D__PIC__=1"
;;
+ *-*-cygwin*)
+ # Cygwin does not need -fPIC.
+ ;;
+ *)
+ AC_MSG_RESULT(-fPIC)
+ PICFLAG=-fPIC
+ ;;
esac
else
case "$host" in