From 897eb548da2a0a5a64884b2c9c9d80ecd13d2d2c Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Tue, 23 Jul 2019 17:22:17 -0400 Subject: [PATCH] jjb: babeltrace: force remap DLL addresses on Cygwin x86 Signed-off-by: Michael Jeanson --- scripts/babeltrace/build.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/scripts/babeltrace/build.sh b/scripts/babeltrace/build.sh index 910ce3a..efc8be1 100755 --- a/scripts/babeltrace/build.sh +++ b/scripts/babeltrace/build.sh @@ -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" -- 2.34.1