jjb: Do not export LDFLAGS and CFLAGS
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Mon, 23 Jan 2017 21:22:31 +0000 (16:22 -0500)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 25 Jan 2017 21:16:42 +0000 (16:16 -0500)
Pass LDFLAGS to configure.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
scripts/liburcu/build.sh

index 796f4aa02a4a2ac91a213d1ed0b9da3bdd9f669f..dfd1040efc417ad9cfc041a8266884575f6499d5 100755 (executable)
@@ -91,6 +91,7 @@ solaris10)
     MAKE=gmake
     TAR=gtar
     NPROC=gnproc
+    LDFLAGS=""
     CFLAGS="-D_XOPEN_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__=1"
     ;;
 
@@ -98,6 +99,7 @@ solaris11)
     MAKE=gmake
     TAR=gtar
     NPROC=nproc
+    LDFLAGS=""
     CFLAGS="-D_XOPEN_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__=1"
     export PATH="$PATH:/usr/perl5/bin"
     ;;
@@ -108,15 +110,16 @@ macosx)
     NPROC="getconf _NPROCESSORS_ONLN"
     BISON="bison"
     YACC="$BISON -y"
+    LDFLAGS="-L/opt/local/lib"
+    CFLAGS="-I/opt/local/include"
     export PATH="/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
-    export CFLAGS="-I/opt/local/include"
-    export LDFLAGS="-L/opt/local/lib"
     ;;
 
 *)
     MAKE=make
     TAR=tar
     NPROC=nproc
+    LDFLAGS=""
     CFLAGS=""
     ;;
 esac
@@ -165,7 +168,7 @@ oot)
     BUILD_PATH=$WORKSPACE/oot
     mkdir -p "$BUILD_PATH"
     cd "$BUILD_PATH"
-    MAKE=$MAKE CFLAGS="$CFLAGS" "$SRCDIR/configure" --prefix="$PREFIX" $CONF_OPTS
+    MAKE=$MAKE CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" "$SRCDIR/configure" --prefix="$PREFIX" $CONF_OPTS
     ;;
 
 dist)
@@ -183,11 +186,11 @@ dist)
     # Ignore level 1 of tar
     $TAR xvf ./*.tar.* --strip 1
 
-    MAKE=$MAKE CFLAGS="$CFLAGS" "$BUILD_PATH/configure" --prefix="$PREFIX" $CONF_OPTS
+    MAKE=$MAKE CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" "$BUILD_PATH/configure" --prefix="$PREFIX" $CONF_OPTS
     ;;
 *)
     echo "Standard in-tree build"
-    MAKE=$MAKE CFLAGS="$CFLAGS" "$BUILD_PATH/configure" --prefix="$PREFIX" $CONF_OPTS
+    MAKE=$MAKE CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" "$BUILD_PATH/configure" --prefix="$PREFIX" $CONF_OPTS
     ;;
 esac
 
This page took 0.023898 seconds and 4 git commands to generate.