jjb: babeltrace: force remap DLL addresses on Cygwin x86
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 23 Jul 2019 21:22:17 +0000 (17:22 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Tue, 23 Jul 2019 21:22:17 +0000 (17:22 -0400)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
scripts/babeltrace/build.sh

index 910ce3a7667feae904c866f58deaa284633358d6..efc8be1b99edf55497637c770eb1ddcd60f5308c 100755 (executable)
@@ -189,6 +189,15 @@ macosx)
     export PYTHON_CONFIG="python3-config"
     ;;
 
+cygwin)
+    export MAKE=make
+    export TAR=tar
+    export NPROC=nproc
+    export PYTHON="python3"
+    export PYTHON_CONFIG="python3-config"
+    rebase_dll=1
+    ;;
+
 *)
     export MAKE=make
     export TAR=tar
@@ -341,6 +350,11 @@ esac
 # BUILD!
 $MAKE -j "$($NPROC)" V=1
 
+# Force rebase DLL address mapping
+if [ "${rebase_dll:-}" == "1" ]; then
+       find . -name "*.dll" | xargs rebase -O -v
+fi
+
 # Install in the workspace
 $MAKE install DESTDIR="$WORKSPACE"
 
This page took 0.025444 seconds and 4 git commands to generate.