mirror of
https://github.com/pygos/build.git
synced 2024-11-22 11:09:46 +01:00
Add helper macro for running configure with standard arguments
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
parent
7f020c855b
commit
50dce293c1
45 changed files with 69 additions and 126 deletions
1
mk.sh
1
mk.sh
|
@ -58,6 +58,7 @@ source "$SCRIPTDIR/util/pkgcmd.sh"
|
||||||
source "$SCRIPTDIR/util/toolchain.sh"
|
source "$SCRIPTDIR/util/toolchain.sh"
|
||||||
source "$SCRIPTDIR/util/misc.sh"
|
source "$SCRIPTDIR/util/misc.sh"
|
||||||
source "$SCRIPTDIR/util/override.sh"
|
source "$SCRIPTDIR/util/override.sh"
|
||||||
|
source "$SCRIPTDIR/util/autotools.sh"
|
||||||
|
|
||||||
############################## toolchain config ##############################
|
############################## toolchain config ##############################
|
||||||
include_merge "TOOLCHAIN"
|
include_merge "TOOLCHAIN"
|
||||||
|
|
|
@ -10,7 +10,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure --prefix="" --host="$TARGET"
|
run_configure "$1"
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure --prefix="" --build="$HOSTTUPLE" --host="$TARGET" \
|
run_configure "$1" --without-bash-malloc --with-installed-readline
|
||||||
--without-bash-malloc --with-installed-readline
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,8 +12,7 @@ prepare() {
|
||||||
build() {
|
build() {
|
||||||
cp -r ${1}/* ${PKGBUILDDIR}
|
cp -r ${1}/* ${PKGBUILDDIR}
|
||||||
|
|
||||||
./configure --prefix="" --host="$TARGET" --sbindir=/bin \
|
run_configure "." --disable-documentation --disable-convert \
|
||||||
--disable-documentation --disable-convert \
|
|
||||||
--disable-zstd --disable-backtrace --disable-python
|
--disable-zstd --disable-backtrace --disable-python
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure --prefix="" --host="$TARGET" --libexecdir=/lib/libexec
|
run_configure "$1"
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,10 +15,7 @@ build() {
|
||||||
|
|
||||||
cp -r $SOURCE/* $PKGBUILDDIR
|
cp -r $SOURCE/* $PKGBUILDDIR
|
||||||
|
|
||||||
./configure --prefix="" --host="$TARGET" --sbindir=/bin \
|
run_configure "."
|
||||||
--datadir=/share --libexecdir=/lib/libexec \
|
|
||||||
--disable-static
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure --prefix="" --host="$TARGET"
|
run_configure "$1"
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,9 +10,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure --prefix="" --host="$TARGET" --sbindir=/bin \
|
run_configure "$1" --disable-compat-symlinks --without-udev
|
||||||
--disable-compat-symlinks --without-udev
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure --prefix="" --host="$TARGET" --sbindir="/bin"
|
run_configure "$1"
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,9 +10,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure --prefix="" --host="$TARGET" --disable-static \
|
run_configure "$1" --without-xmlwf --with-libbsd
|
||||||
--without-xmlwf --with-libbsd
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure --prefix="" --host="$TARGET" --disable-static
|
run_configure "$1"
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,9 +10,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure --prefix="" --host="$TARGET" --libexecdir=/lib/libexec \
|
run_configure "$1" --localstatedir=/var/lib/locate
|
||||||
--localstatedir=/var/lib/locate
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure --prefix="" --host="$TARGET" --libexecdir="/lib/libexec"
|
run_configure "$1"
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure --prefix="" --host="$TARGET" --disable-static --enable-cxx
|
run_configure "$1" --enable-cxx
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure --prefix="" --host="$TARGET"
|
run_configure "$1"
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure --prefix="" --host="$TARGET" --with-regex=regcmp
|
run_configure "$1" --with-regex=regcmp
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,10 +10,10 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure --prefix="" --host="$TARGET" --disable-servers \
|
run_configure "$1" --disable-servers --disable-dnsdomainname \
|
||||||
--disable-dnsdomainname --disable-rcp --disable-rexec \
|
--disable-rcp --disable-rexec --enable-hostname \
|
||||||
--enable-hostname --disable-rlogin --disable-rsh \
|
--disable-rlogin --disable-rsh --disable-logger \
|
||||||
--disable-logger --disable-talk --disable-ifconfig
|
--disable-talk --disable-ifconfig
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,12 +10,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
run_configure "$1"
|
||||||
local DEPLOY="$2"
|
|
||||||
|
|
||||||
$SOURCE/configure --prefix="" --host="$TARGET" --sbindir=/bin \
|
|
||||||
--libexecdir=/lib/libexec
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,8 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure --prefix="" --host="$TARGET" --enable-optional-progs \
|
run_configure "$1" --enable-optional-progs --disable-tests \
|
||||||
--disable-tests --enable-libkeymap --disable-vlock
|
--enable-libkeymap --disable-vlock
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,9 +10,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure --prefix="" --host="$TARGET" --with-xz --with-zlib \
|
run_configure "$1" --with-xz --with-zlib
|
||||||
--with-bashcompletiondir="/share/bash-completion/completions"
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,11 +10,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
ac_cv_func_malloc_0_nonnull=yes \
|
run_configure "$1" --with-drill --without-pyldns --without-pyldnsx \
|
||||||
ac_cv_func_realloc_0_nonnull=yes \
|
|
||||||
$1/configure --prefix="" --build="$HOSTTUPLE" --host="$TARGET" \
|
|
||||||
--sysconfdir=/etc --sbindir=/bin --disable-static \
|
|
||||||
--with-drill --without-pyldns --without-pyldnsx \
|
|
||||||
--without-p5-dns-ldns --with-ssl="$TCDIR/$TARGET"
|
--without-p5-dns-ldns --with-ssl="$TCDIR/$TARGET"
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure --prefix="" --host="$TARGET" --with-regex=regcmp
|
run_configure "$1" --with-regex=regcmp
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure --prefix="" --host="$TARGET" --disable-static
|
run_configure "$1"
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure --prefix="" --host="$TARGET"
|
run_configure "$1"
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure --prefix="" --host="$TARGET"
|
run_configure "$1"
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,9 +10,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure --prefix="" --host="$TARGET" --disable-static \
|
run_configure "$1" --disable-cli
|
||||||
--disable-cli
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,10 +13,7 @@ build() {
|
||||||
cp -r ${1}/* ${PKGBUILDDIR}
|
cp -r ${1}/* ${PKGBUILDDIR}
|
||||||
sed -i "s#/usr/include/libnl3#$TCDIR/$TARGET/include/libnl3#g" configure
|
sed -i "s#/usr/include/libnl3#$TCDIR/$TARGET/include/libnl3#g" configure
|
||||||
|
|
||||||
./configure --prefix="" --host="$TARGET" --sbindir=/bin \
|
run_configure "." --with-pcap=linux --enable-ipv6
|
||||||
--libexecdir=/lib/libexec --with-pcap=linux \
|
|
||||||
--enable-ipv6
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure --prefix="" --host="$TARGET" --disable-static
|
run_configure "$1"
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,9 +10,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure --prefix="" --host="$TARGET" \
|
run_configure "$1"
|
||||||
--enable-shared --disable-static
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure --prefix="" --host="$TARGET" --enable-utf8
|
run_configure "$1" --enable-utf8
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,9 +10,8 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure --prefix="" --host="$TARGET" --with-shared \
|
run_configure "$1" --with-shared --without-debug --without-ada \
|
||||||
--without-debug --without-ada --enable-widec \
|
--enable-widec --with-pkg-config-libdir=/lib/pkgconfig \
|
||||||
--with-pkg-config-libdir=/lib/pkgconfig \
|
|
||||||
--enable-pc-files --disable-stripping
|
--enable-pc-files --disable-stripping
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
|
|
|
@ -10,9 +10,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure --prefix="" --host="$TARGET" --sbindir=/bin \
|
run_configure "$1" --disable-debug --disable-man-doc --without-mini-gmp
|
||||||
--disable-debug --disable-man-doc --without-mini-gmp
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,9 +10,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure --prefix="" --host="$TARGET" --sbindir=/bin \
|
run_configure "$1" --with-pie --without-pam --without-stackprotect \
|
||||||
--libexecdir=/lib/libexec \
|
|
||||||
--with-pie --without-pam --without-stackprotect \
|
|
||||||
--without-selinux --disable-strip \
|
--without-selinux --disable-strip \
|
||||||
--with-sandbox=seccomp_filter \
|
--with-sandbox=seccomp_filter \
|
||||||
--with-privsep-path=/var/lib/sshd
|
--with-privsep-path=/var/lib/sshd
|
||||||
|
|
|
@ -10,11 +10,8 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
ac_cv_func_malloc_0_nonnull=yes \
|
run_configure "$1" --enable-watch8bit --with-ncurses \
|
||||||
ac_cv_func_realloc_0_nonnull=yes \
|
--without-systemd --disable-kill --disable-numa
|
||||||
$1/configure --prefix="" --host="$TARGET" --disable-static \
|
|
||||||
--enable-watch8bit --with-ncurses --without-systemd \
|
|
||||||
--disable-kill --disable-numa --sbindir=/bin
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,11 +10,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
ac_cv_func_malloc_0_nonnull=yes \
|
run_configure "$1" --disable-selinux
|
||||||
ac_cv_func_realloc_0_nonnull=yes \
|
|
||||||
$1/configure --prefix="" --host="$TARGET" --disable-static \
|
|
||||||
--disable-selinux
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure --prefix="" --host="$TARGET" --disable-static
|
run_configure "$1"
|
||||||
|
|
||||||
make SHLIB_LIBS="-lncursesw" -j $NUMJOBS
|
make SHLIB_LIBS="-lncursesw" -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure --prefix="" --host="$TARGET"
|
run_configure "$1"
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,8 +13,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure --prefix="" --host="$TARGET" --sbindir=/bin \
|
run_configure "$1" --disable-man --without-libpam --without-selinux \
|
||||||
--disable-man --without-libpam --without-selinux \
|
|
||||||
--with-sha-crypt --with-group-name-max-length=32
|
--with-sha-crypt --with-group-name-max-length=32
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure --prefix="" --host="$TARGET" --disable-tcl
|
run_configure "$1" --disable-tcl
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure --prefix="" --host="$TARGET" --libexecdir=/lib/libexec
|
run_configure "$1"
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,9 +10,8 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure --prefix="" --host="$TARGET" --sbindir=/bin \
|
run_configure "$1" --with-system-libpcap --with-cap-ng \
|
||||||
--libexecdir=/lib/libexec --with-system-libpcap \
|
--with-crypto="$TCDIR/$TARGET"
|
||||||
--with-cap-ng --with-crypto="$TCDIR/$TARGET"
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,9 +10,8 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure --prefix="" --host="$TARGET" --disable-static \
|
run_configure "$1" --with-pidfile=/run/unbound.pid \
|
||||||
--sysconfdir=/etc --with-pidfile=/run/unbound.pid \
|
--with-libexpat="$TCDIR/$TARGET" \
|
||||||
--sbindir=/bin --with-libexpat="$TCDIR/$TARGET" \
|
|
||||||
--with-ssl="$TCDIR/$TARGET"
|
--with-ssl="$TCDIR/$TARGET"
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
|
|
|
@ -10,18 +10,9 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure ADJTIME_PATH=/var/lib/hwclock/adjtime \
|
ADJTIME_PATH=/var/lib/hwclock/adjtime \
|
||||||
--prefix="" --host="$TARGET" --sbindir="/bin" \
|
run_configure "$1" --disable-pylibmount --without-python \
|
||||||
--with-bashcompletiondir="/share/bash-completion/completions" \
|
|
||||||
--disable-pylibmount --disable-static --without-python \
|
|
||||||
--without-systemd --without-systemdsystemunitdir \
|
--without-systemd --without-systemdsystemunitdir \
|
||||||
--disable-cal --disable-chmem --disable-fdformat \
|
|
||||||
--disable-fsck --disable-logger --disable-mesg \
|
|
||||||
--disable-minix --disable-bfs --disable-more \
|
|
||||||
--disable-nologin --disable-nsenter --disable-pivot_root \
|
|
||||||
--disable-raw --disable-sulogin --disable-switch_root \
|
|
||||||
--disable-ul --disable-unshare --disable-utmpdump \
|
|
||||||
--disable-uuidd --disable-wall --disable-zramctl \
|
|
||||||
--disable-makeinstall-chown \
|
--disable-makeinstall-chown \
|
||||||
--disable-makeinstall-setuid \
|
--disable-makeinstall-setuid \
|
||||||
--enable-agetty
|
--enable-agetty
|
||||||
|
|
|
@ -10,8 +10,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
$1/configure --prefix="" --host="$TARGET" --disable-static
|
run_configure "$1"
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
14
util/autotools.sh
Normal file
14
util/autotools.sh
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
run_configure() {
|
||||||
|
local srcdir="$1"
|
||||||
|
shift
|
||||||
|
|
||||||
|
ac_cv_func_malloc_0_nonnull=yes \
|
||||||
|
ac_cv_func_realloc_0_nonnull=yes \
|
||||||
|
$srcdir/configure --prefix="" --build="$HOSTTUPLE" --host="$TARGET" \
|
||||||
|
--bindir="/bin" --sbindir="/bin" --sysconfdir="/etc" \
|
||||||
|
--libexecdir="/lib/libexec" --datarootdir="/share" \
|
||||||
|
--datadir="/share" --sharedstatedir="/share" \
|
||||||
|
--with-bashcompletiondir="/share/bash-completion/completions" \
|
||||||
|
--includedir="/include" \
|
||||||
|
--enable-shared --disable-static $@
|
||||||
|
}
|
Loading…
Reference in a new issue