aboutsummaryrefslogtreecommitdiffstats
path: root/erts/test/erlexec_SUITE_data/Makefile.src
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2012-05-03 10:31:41 +0200
committerLukas Larsson <[email protected]>2012-05-03 10:31:41 +0200
commitc5d6ce6a07478c5ac19fdf2df244c4b837888d08 (patch)
tree494865a3356371ac55cb9e441647c84c4cf66bce /erts/test/erlexec_SUITE_data/Makefile.src
parent2dfae4928db3917b9ee8050626e05d7b57d4073f (diff)
parent378c651e7aab2d88cb29cccb1c0aae7ef895bb7a (diff)
downloadotp-c5d6ce6a07478c5ac19fdf2df244c4b837888d08.tar.gz
otp-c5d6ce6a07478c5ac19fdf2df244c4b837888d08.tar.bz2
otp-c5d6ce6a07478c5ac19fdf2df244c4b837888d08.zip
Merge branch 'sverk/cross_tests/OTP-10074' into maint
* sverk/cross_tests/OTP-10074: Fix include issues in when building tests Fix cross compile of testcases Update cross build system for tests to work
Diffstat (limited to 'erts/test/erlexec_SUITE_data/Makefile.src')
-rw-r--r--erts/test/erlexec_SUITE_data/Makefile.src8
1 files changed, 8 insertions, 0 deletions
diff --git a/erts/test/erlexec_SUITE_data/Makefile.src b/erts/test/erlexec_SUITE_data/Makefile.src
index b751547b8f..970a905c32 100644
--- a/erts/test/erlexec_SUITE_data/Makefile.src
+++ b/erts/test/erlexec_SUITE_data/Makefile.src
@@ -20,6 +20,8 @@
CC = @CC@
CFLAGS = @ERTS_CFLAGS@
LIBS = @ERTS_LIBS@
+CP=cp
+CHMOD=chmod
ERLX_T_CFLAGS = -Wall $(ERLX_DEFS) $(CFLAGS) @DEFS@
@@ -29,8 +31,14 @@ PROGS = erlexec_tests@exe@
all: $(PROGS)
+@IFEQ@ (@cross@, yes)
+gccifier@exe@:
+ $(CP) ..@DS@utils@[email protected] gccifier@exe@
+ $(CHMOD) a+x gccifier@exe@
+@ELSE@
gccifier@exe@: ..@DS@utils@[email protected]
$(CC) $(CFLAGS) -o gccifier@exe@ ..@DS@utils@[email protected] $(LIBS)
+@ENDIF@
erlexec_tests@exe@: gccifier@exe@ erlexec_tests.c
$(GCC) $(ERLX_T_CFLAGS) -o erlexec_tests@exe@ erlexec_tests.c