osrm-backend/scripts/binutils/f0e9390be/script.sh
Patrick Niklaus f8dd965435 Squashed 'third_party/mason/' content from commit cf3561b
git-subtree-dir: third_party/mason
git-subtree-split: cf3561bf78cb146821dba3d95c308fc44db05f46
2016-12-15 10:31:15 +00:00

42 lines
879 B
Bash
Executable File

#!/usr/bin/env bash
MASON_NAME=binutils
MASON_VERSION=f0e9390be
MASON_LIB_FILE=bin/ld
. ${MASON_DIR}/mason.sh
function mason_load_source {
export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION}
git clone git://sourceware.org/git/binutils-gdb.git ${MASON_BUILD_PATH}
cd ${MASON_BUILD_PATH}
git checkout f0e9390be5bbfa3ee777d81dacfccd713ebddb68
cd ../
}
function mason_compile {
# we unset CFLAGS otherwise they will clobber defaults inside binutils
unset CFLAGS
./configure \
--prefix=${MASON_PREFIX} \
--enable-gold \
--enable-plugins \
--enable-static \
--disable-shared \
--disable-werror \
--disable-dependency-tracking
make -j${MASON_CONCURRENCY}
make install
}
function mason_ldflags {
:
}
function mason_clean {
make clean
}
mason_run "$@"