mirror of
https://github.com/pygos/build.git
synced 2024-11-23 03:29:46 +01:00
5c8effa301
- 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>
24 lines
603 B
Text
Executable file
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
|
|
}
|