Skip to content
Snippets Groups Projects
Verified Commit 8f153efb authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Add build argument to autotools stuff

parent e4521571
No related branches found
No related tags found
No related merge requests found
Showing
with 21 additions and 14 deletions
......@@ -28,6 +28,8 @@ export RANLIB="${HOST}-gcc-ranlib"
export READELF="${HOST}-readelf"
export STRIP="${HOST}-strip"
BUILD="$(cc -dumpmachine)"
export PKG_CONFIG_FOR_BUILD="pkg-config"
if [[ "$OSTYPE" == "darwin"* ]]; then
......
......@@ -13,7 +13,7 @@ function recipe_update {
function recipe_build {
wget -O build-aux/config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
./configure --host=${HOST} --prefix=''
./configure --build=${BUILD} --host=${HOST} --prefix=''
make -j"$(nproc)"
skip=1
}
......
......@@ -16,7 +16,7 @@ function recipe_build {
sed -i 's|.*/doc/help2man.*|\&\& true|' Makefile.in
sed -i 's|install-info-am install-man|install-info-am|' Makefile.in
./configure --host=${HOST} --prefix=''
./configure --build=${BUILD} --host=${HOST} --prefix=''
make -j"$(nproc)"
skip=1
}
......
......@@ -13,7 +13,7 @@ function recipe_update {
function recipe_build {
wget -O support/config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
./configure --host=${HOST} --prefix=/ --disable-readline
./configure --build=${BUILD} --host=${HOST} --prefix=/ --disable-readline
make -j"$(nproc)"
skip=1
}
......
......@@ -16,7 +16,7 @@ function recipe_build {
sysroot="$(realpath ../sysroot)"
export LDFLAGS="-L$sysroot/lib"
export CPPFLAGS="-I$sysroot/include"
./configure --host=${HOST} --prefix=/ --without-fonts
./configure --build=${BUILD} --host=${HOST} --prefix=/ --without-fonts
make -j"$(nproc)"
skip=1
}
......
......@@ -19,6 +19,7 @@ function recipe_build {
autoreconf -i
./configure \
--prefix=/ \
--build=${BUILD} \
--host=${HOST} \
--disable-tftp \
--disable-ftp \
......
......@@ -13,7 +13,7 @@ function recipe_update {
function recipe_build {
./autogen.sh
./configure --host=${HOST} --prefix=/
./configure --build=${BUILD} --host=${HOST} --prefix=/ cross_compiling=yes
make -j"$(nproc)"
skip=1
}
......
......@@ -13,7 +13,7 @@ function recipe_update {
function recipe_build {
autoreconf
./configure --host=${HOST} --prefix=/
./configure --build=${BUILD} --host=${HOST} --prefix=/
make -j"$(nproc)"
skip=1
}
......
......@@ -19,7 +19,7 @@ function recipe_build {
export LDFLAGS="-L$sysroot/lib"
./autogen.sh
wget -O config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
./configure --host=${HOST} --prefix='' --disable-opengl --disable-sdltest --with-sdl-prefix="$sysroot"
./configure --build=${BUILD} --host=${HOST} --prefix='' --disable-opengl --disable-sdltest --with-sdl-prefix="$sysroot"
make -j"$(nproc)"
skip=1
}
......
......@@ -12,7 +12,7 @@ function recipe_update {
}
function recipe_build {
./configure --host=${HOST} --prefix=/
./configure --build=${BUILD} --host=${HOST} --prefix=/
make -j"$(nproc)"
skip=1
}
......
......@@ -18,6 +18,7 @@ function recipe_build {
export CFLAGS="-I$sysroot/include"
export LDFLAGS="-L$sysroot/lib"
./configure \
--build=${BUILD} \
--host="$HOST" \
--prefix='' \
--disable-server \
......
......@@ -16,7 +16,7 @@ function recipe_build {
sysroot="$(realpath ../sysroot)"
export LDFLAGS="-L$sysroot/lib"
export CPPFLAGS="-I$sysroot/include"
./configure --host=${HOST} --prefix='/'
./configure --build=${BUILD} --host=${HOST} --prefix='/'
make -j"$(nproc)"
skip=1
}
......
......@@ -8,7 +8,7 @@ function recipe_update {
}
function recipe_build {
./configure --host=${HOST} --prefix=/ ac_cv_func_gethostbyname=no ac_cv_func_connect=no
./configure --build=${BUILD} --host=${HOST} --prefix=/ ac_cv_func_gethostbyname=no ac_cv_func_connect=no
make -j"$(nproc)"
skip=1
}
......
......@@ -27,6 +27,7 @@ function recipe_build {
ln -sf "$sysroot/lib" "$sysroot/usr/lib"
./configure \
--build=${BUILD} \
--host=${HOST} \
--target=${HOST} \
--prefix=/ \
......
......@@ -18,6 +18,7 @@ function recipe_build {
export LDFLAGS="-L$sysroot/lib"
wget -O build-aux/config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
./configure \
--build=${BUILD} \
--host=${HOST} \
--prefix=/ \
--disable-shared \
......
......@@ -19,7 +19,7 @@ function recipe_build {
sysroot="$(realpath ../sysroot)"
export LDFLAGS="-L$sysroot/lib"
export CPPFLAGS="-I$sysroot/include"
./configure --host=${HOST} --prefix=/ ac_cv_fread_reads_directories=yes ac_cv_snprintf_returns_bogus=yes ac_cv_lib_curl_curl_global_init=yes CURL_CONFIG=no
./configure --build=${BUILD} --host=${HOST} --prefix=/ ac_cv_fread_reads_directories=yes ac_cv_snprintf_returns_bogus=yes ac_cv_lib_curl_curl_global_init=yes CURL_CONFIG=no
make ${MAKEFLAGS} -j"$(nproc)"
skip=1
}
......
......@@ -17,6 +17,7 @@ function recipe_build {
export CFLAGS="-I$sysroot/include"
export LDFLAGS="-L$sysroot/lib"
glib_cv_stack_grows=no glib_cv_uscore=no ./autogen.sh \
--build=${BUILD} \
--host=${HOST} \
--prefix=/ \
--disable-shared \
......
......@@ -17,7 +17,7 @@ function recipe_build {
mkdir -p "$sysroot/usr"
ln -sf "$sysroot/include" "$sysroot/usr/include"
ln -sf "$sysroot/lib" "$sysroot/usr/lib"
./configure --host=${HOST} --target=${HOST} --prefix=/ --with-sysroot=/ --with-build-sysroot="$sysroot" --disable-gdb --disable-nls --disable-werror
./configure --build=${BUILD} --host=${HOST} --target=${HOST} --prefix=/ --with-sysroot=/ --with-build-sysroot="$sysroot" --disable-gdb --disable-nls --disable-werror
make -j"$(nproc)"
skip=1
}
......
......@@ -12,7 +12,7 @@ function recipe_update {
}
function recipe_build {
./configure --host=${HOST} --prefix=/
./configure --build=${BUILD} --host=${HOST} --prefix=/
make -j"$(nproc)"
skip=1
}
......
......@@ -12,7 +12,7 @@ function recipe_update {
}
function recipe_build {
./configure --host=${HOST} --prefix=/ CFLAGS="-DPOSIX -DNO_ARCHIVES -DNO_OUTPUT_SYNC" --without-guile
./configure --build=${BUILD} --host=${HOST} --prefix=/ CFLAGS="-DPOSIX -DNO_ARCHIVES -DNO_OUTPUT_SYNC" --without-guile
make -j"$(nproc)"
skip=1
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment