Files
MX_Pmodule/Programming/gcc/build
Achim Gsell f5a1184062 Programming/gcc/build
- patch of main configure added to fix assembler problems on Mac OS X and Xclode 7
2016-07-27 18:56:05 +02:00

32 lines
829 B
Plaintext
Executable File

#!/usr/bin/env modbuild
pbuild::patch_sources_Darwin() {
if [[ "${V_MAJOR}" == "4" ]]; then
patch -p1 < "${BUILD_BLOCK_DIR}/${V_MAJOR}/non-dead-strip.patch"
patch -p1 < "${BUILD_BLOCK_DIR}/${V_MAJOR}/configure-as.patch"
fi
}
pbuild::configure() {
"${MODULE_SRCDIR}"/configure \
--prefix="${PREFIX}" \
--enable-languages=c,c++,objc,obj-c++,lto,fortran \
--with-gmp="${GMP_PREFIX}" \
--with-mpfr="${MPFR_PREFIX}" \
--with-mpc="${MPC_PREFIX}" \
--enable-lto \
--disable-multilib \
--with-pkgversion="PSI Environment Module" \
--with-build-config=bootstrap-debug \
|| exit 1
}
# use system gcc to compile
declare -rx CC=gcc
declare -rx CXX=g++
pbuild::add_to_group 'Programming'
pbuild::set_docfiles 'COPYING' 'COPYING.LIB' 'COPYING.RUNTIME' 'COPYING3' 'COPYING3.LIB' 'NEWS' 'README'
pbuild::make_all