jjb: lttng-tools: not all configs build liblttng-ctl
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 22 Nov 2021 16:29:09 +0000 (11:29 -0500)
committerMichael Jeanson <mjeanson@efficios.com>
Mon, 22 Nov 2021 16:29:15 +0000 (11:29 -0500)
Add conditionnal logic to handle configurations where we don't build
liblttng-ctl.

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
scripts/lttng-tools/build.sh

index e4a85ac31f0cb64f8676459c9a4e0304da75ad11..f0e4344cb7c5d7dd95903867e53092dcaa9c8870 100755 (executable)
@@ -507,12 +507,16 @@ fi
 # Clean the build directory
 $MAKE clean
 
-# Cleanup rpath in executables and shared libraries
+# Cleanup rpath in executables
 find "$WORKSPACE/$PREFIX/bin" -type f -perm -0500 -exec chrpath --delete {} \;
-find "$WORKSPACE/$PREFIX/lib" -name "*.so" -exec chrpath --delete {} \;
 
-# Remove libtool .la files
-find "$WORKSPACE/$PREFIX/lib" -name "*.la" -exec rm -f {} \;
+# Some configs don't build liblttng-ctl
+if [ -d "$WORKSPACE/$PREFIX/lib" ]; then
+    # Cleanup rpath in shared libraries
+    find "$WORKSPACE/$PREFIX/lib" -name "*.so" -exec chrpath --delete {} \;
+    # Remove libtool .la files
+    find "$WORKSPACE/$PREFIX/lib" -name "*.la" -exec rm -f {} \;
+fi
 
 # Exit with failure if any of the tests failed
 exit $failed_tests
This page took 0.024892 seconds and 4 git commands to generate.