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

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

index 80488e486d87f956247ce8f165c64317743469f0..dc44f21342bb04755541f3dcf3dcb4ac72b2aba0 100755 (executable)
@@ -48,11 +48,13 @@ case "$arch" in
      ;;
 esac
 
-# Export build flags
-export CPPFLAGS="-I$URCU_INCS"
-export LDFLAGS="-L$URCU_LIBS"
+# Export time env. variables flags
 export LD_LIBRARY_PATH="$URCU_LIBS:${LD_LIBRARY_PATH:-}"
 
+# Define flags
+CPPFLAGS="-I$URCU_INCS"
+LDFLAGS="-L$URCU_LIBS"
+
 
 # Set configure options for each build configuration
 CONF_OPTS=""
@@ -102,7 +104,7 @@ oot)
     mkdir -p "$BUILD_PATH"
     cd "$BUILD_PATH"
 
-    "$SRCDIR/configure" --prefix="$PREFIX" $CONF_OPTS
+    CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS" "$SRCDIR/configure" --prefix="$PREFIX" $CONF_OPTS
     ;;
 
 dist)
@@ -120,7 +122,7 @@ dist)
     $TAR xvf ./*.tar.* --strip 1
 
     # Build in extracted source tree
-    "$BUILD_PATH/configure" --prefix="$PREFIX" $CONF_OPTS
+    CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS" "$BUILD_PATH/configure" --prefix="$PREFIX" $CONF_OPTS
     ;;
 
 oot-dist)
@@ -143,12 +145,12 @@ oot-dist)
     cd "$BUILD_PATH"
 
     # Build oot from extracted sources
-    "$NEWSRC_PATH/configure" --prefix="$PREFIX" $CONF_OPTS
+    CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS" "$NEWSRC_PATH/configure" --prefix="$PREFIX" $CONF_OPTS
     ;;
 
 *)
     echo "Standard in-tree build"
-    "$BUILD_PATH/configure" --prefix="$PREFIX" $CONF_OPTS
+    CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS" "$BUILD_PATH/configure" --prefix="$PREFIX" $CONF_OPTS
     ;;
 esac
 
This page took 0.02467 seconds and 4 git commands to generate.