diff options
author | Lukas Larsson <[email protected]> | 2012-03-22 18:02:27 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2012-05-02 09:51:44 +0200 |
commit | 3378d4abca239185f4a282f5695c8dcdf9f96b76 (patch) | |
tree | f0faeed18a131e74af89e79fb54760cee88da8e0 /erts/test/erlexec_SUITE_data/Makefile.src | |
parent | b834e188e6a2df3b2fd689618d43e6f878a5d1e4 (diff) | |
download | otp-3378d4abca239185f4a282f5695c8dcdf9f96b76.tar.gz otp-3378d4abca239185f4a282f5695c8dcdf9f96b76.tar.bz2 otp-3378d4abca239185f4a282f5695c8dcdf9f96b76.zip |
Fix cross compile of testcases
Diffstat (limited to 'erts/test/erlexec_SUITE_data/Makefile.src')
-rw-r--r-- | erts/test/erlexec_SUITE_data/Makefile.src | 8 |
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 |