From 562afa310ef78974b2986154220e26f58e83a72e Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Wed, 8 Apr 2020 17:25:15 +0200 Subject: [PATCH] Fix osxcross command wrapper script --- os_utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/os_utils.py b/os_utils.py index 9ef401c..2808ac1 100755 --- a/os_utils.py +++ b/os_utils.py @@ -168,7 +168,11 @@ def create_osxcross_wrapper(opts: RuntimeOpts, product: str, target: str, toolch # we want the resulting configuration to be independent from out python scripts. wrapper_src = """#!/bin/bash -LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:%s" $1 "$@" +OSXCROSS_COMMAND=$1; +shift; +export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:%s"; +${OSXCROSS_COMMAND} "$@"; +exit $?; """ % os.path.join(toolchain_path, 'lib') build_dir = os.path.join(opts.configure_dir, '%s-%s-%s' % (product, target, opts.configuration))