]> rtime.felk.cvut.cz Git - CanFestival-3.git/commitdiff
Bug with x86_64 and gcc without -fPIC cflags fixed
authorlbessard <lbessard>
Fri, 22 Aug 2008 12:17:31 +0000 (12:17 +0000)
committerlbessard <lbessard>
Fri, 22 Aug 2008 12:17:31 +0000 (12:17 +0000)
configure

index 0c62ce38d69f133236f037fa26d66628fb1d47b9..983391fddfcc99c72de888ff091915afc0e53740 100755 (executable)
--- a/configure
+++ b/configure
@@ -246,12 +246,6 @@ fi
 echo "Host OS: ${SUB_OS_NAME}"
 echo "Host arch: ${SUB_ARCH_NAME}"
 
-if [ "$SUB_ARCH_NAME" = "x86_64" -a "$CC" = "gcc" ]; then
-       # Only if we are on x86_64 and using gcc
-       # For shared library generation, it needs this
-       SUB_PROG_CFLAGS=-fPIC
-fi
-
 if [ "$SUB_ARCH_NAME" = "ppc" -o "$SUB_ARCH_NAME" = "powerpc" ]; then
        # PowerPC uses big endian format
        CANOPEN_BIG_ENDIAN=1
@@ -516,6 +510,12 @@ fi
 
 echo "Using ${CC} as a C compiler"
 
+if [ "$SUB_ARCH_NAME" = "x86_64" -a "$CC" = "gcc" ]; then
+       # Only if we are on x86_64 and using gcc
+       # For shared library generation, it needs this
+       SUB_PROG_CFLAGS=-fPIC
+fi
+
 if [ "$BINUTILS_PREFIX" = "" ]; then
        SUB_BINUTILS_PREFIX=`echo "$CC" | sed 's/gcc$//'`
 else