aboutsummaryrefslogtreecommitdiff
path: root/scripts/xcomp.sh
diff options
context:
space:
mode:
authorDavid Timber <david@lyset.snart.me>2019-12-27 18:22:18 +1100
committerDavid Timber <david@lyset.snart.me>2019-12-27 18:22:18 +1100
commit5f341e4c20767f08165776bdf559b096dc8996e9 (patch)
tree440052148fcda127898dad2ba3e6a6458482dba6 /scripts/xcomp.sh
initial commit
Diffstat (limited to 'scripts/xcomp.sh')
-rwxr-xr-xscripts/xcomp.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/xcomp.sh b/scripts/xcomp.sh
new file mode 100755
index 0000000..2ff24a5
--- /dev/null
+++ b/scripts/xcomp.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+OUT="$PROONE_BIN_PREFIX.$PROONE_BIN_ARCH"
+
+./configure --host="$PROONE_HOST" &&\
+ make -j$(nproc) &&\
+ cp -a src/proone "$OUT" &&\
+ "$PROONE_HOST-strip" -S --strip-unneeded --remove-section=.note.gnu.gold-version --remove-section=.comment --remove-section=.note --remove-section=.note.gnu.build-id --remove-section=.note.ABI-tag --remove-section=.jcr --remove-section=.got.plt --remove-section=.eh_frame --remove-section=.eh_frame_ptr --remove-section=.eh_frame_hdr "$OUT" &&\
+ make distclean