1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-16 00:17:11 +01:00
build/tcpkg/gcc2/build
David Oberhollenzer 5c8effa301 Remove unneccessarry prepare() hooks
- Packages that don't download anything don't need a prepare() hook
 - Packages that inherit the source from other packages should leave
   it untouched. If they get downloaded first, they should use the
   hook from the original package.

Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-01-30 14:02:09 +01:00

24 lines
603 B
Text
Executable file

# inherit package details from first stage GCC
source "$SCRIPTDIR/tcpkg/gcc1/build"
build() {
local INPUT="$1"
local OUTPUT="$2"
$INPUT/configure --prefix="$TCDIR" --target="$TARGET" \
--build="$HOSTTUPLE" --host="$HOSTTUPLE" \
--with-sysroot="$TCDIR/$TARGET" \
--disable-nls --enable-languages=c,c++ \
--enable-c99 --enable-long-long \
--disable-libmudflap --disable-multilib \
--disable-libmpx --disable-libssp \
--disable-libsanitizer \
--with-arch="$GCC_CPU" $GCC_EXTRACFG \
--with-native-system-header-dir="/include"
make -j $NUMJOBS
}
deploy() {
make install
}