summaryrefslogtreecommitdiff
path: root/odk
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-01-05 22:34:28 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-01-06 10:31:54 +0100
commitac4f30fdf808bfbb7c8f534661851d10301bbcad (patch)
treedfa2fb1d3ffd05f465dd86ac7299d755983bb82c /odk
parent0191e8e177b468336aacdeefde5dadf1134d228a (diff)
Fix MACOSX_SHELL_HACK
...so that it is set and actually takes effect when the definition of odk_build-examples_test is expanded Change-Id: I0a4ca22f3b7b17d802dae9195954b030cde9ddac Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86251 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'odk')
-rw-r--r--odk/build-examples_common.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/odk/build-examples_common.mk b/odk/build-examples_common.mk
index 50ea40ec905e..23c552efd177 100644
--- a/odk/build-examples_common.mk
+++ b/odk/build-examples_common.mk
@@ -7,10 +7,6 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
-define odk_build-examples_test
-
-$(eval $(call gb_CustomTarget_CustomTarget,$(1)))
-
# System-provided shells on macOS are known to unset DYLD_LIBRARY_PATH, so we need some sort of hack
# to provided the invocation of make below with a shell that preserves DYLD_LIBRARY_PATH. Until
# macOS 10.14, what apparently worked is to use a copy of /bin/sh in some temp dir. However, with
@@ -28,6 +24,10 @@ $(eval $(call gb_CustomTarget_CustomTarget,$(1)))
# avoid surprises, use an explicit check for an origin of "command line" here.)
MACOSX_SHELL_HACK := $(and $(filter MACOSX,$(OS)),$(filter-out command line,$(origin SHELL)))
+define odk_build-examples_test
+
+$(eval $(call gb_CustomTarget_CustomTarget,$(1)))
+
$(call gb_CustomTarget_get_target,$(1)): \
$(call gb_CustomTarget_get_workdir,$(1))/setsdkenv
ifneq ($(gb_SUPPRESS_TESTS),)