diff options
Diffstat (limited to 'standalone/android/wrapper.pl')
-rw-r--r-- | standalone/android/wrapper.pl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/standalone/android/wrapper.pl b/standalone/android/wrapper.pl new file mode 100644 index 000000000..ae484a6cf --- /dev/null +++ b/standalone/android/wrapper.pl @@ -0,0 +1,12 @@ +#!/usr/bin/perl +my $prog=q{PROG}; # replaced +my @opts=qw{OPTS}; # replaced + +if (grep { $_ eq "-r" || $_ eq "--relocatable" } @ARGV) { + print "running $prog withthout extra opts, as relocatable build detected\n"; + exec($prog,@ARGV) || die "failed to run $prog"; +} +else { + print "running $prog with extra opts @opts\n"; + exec($prog,@opts,@ARGV) || die "failed to run $prog"; +} |