From 25c4c78e2ddad482dfc9d5a104f76325fcc2f8e5 Mon Sep 17 00:00:00 2001 From: Jason Copenhaver Date: Fri, 16 Jan 2015 16:50:24 -0300 Subject: Fix compiler warnings on Cygwin and Mac OS X. * Don't use PIE/PIC on Cygwin/Darwin unless specified as these platforms don't support it. * Cleanup warnings for 'make check' build. * Fix the type issue for getsockopt calls. * Fix enum warnings in Yahoo libs on Mac OS X. --- configure | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'configure') diff --git a/configure b/configure index d2913f13..8019c5f0 100755 --- a/configure +++ b/configure @@ -56,6 +56,14 @@ GLIB_MIN_VERSION=2.14 echo BitlBee configure +# Cygwin and Darwin don't support PIC/PIE +case "$arch" in + CYGWIN* ) + pie=0;; + Darwin ) + pie=0;; +esac + while [ -n "$1" ]; do e="`expr "X$1" : 'X--\(.*=.*\)'`" if [ -z "$e" ]; then -- cgit v1.2.3