mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-22 04:44:19 +08:00
Compile statically on everything
This commit is contained in:
parent
e68f45f00d
commit
f84eb0c265
@ -12,6 +12,7 @@ function recipe_update {
|
||||
}
|
||||
|
||||
function recipe_build {
|
||||
export LDFLAGS="--static"
|
||||
./configure --build=${BUILD} --host=${HOST} --prefix=/
|
||||
make -j"$(nproc)"
|
||||
skip=1
|
||||
|
||||
@ -15,8 +15,8 @@ function recipe_update {
|
||||
|
||||
function recipe_build {
|
||||
sysroot="$PWD/../sysroot"
|
||||
export LDFLAGS="-L$sysroot/lib"
|
||||
export CPPFLAGS="-I$sysroot/include"
|
||||
export LDFLAGS="-L$sysroot/lib -static"
|
||||
./configure \
|
||||
--enable-cross-compile \
|
||||
--target-os=redox \
|
||||
|
||||
@ -25,7 +25,7 @@ function recipe_build {
|
||||
mkdir -p "$sysroot/usr"
|
||||
ln -sf "$sysroot/include" "$sysroot/usr/include"
|
||||
ln -sf "$sysroot/lib" "$sysroot/usr/lib"
|
||||
|
||||
export LDFLAGS="-static"
|
||||
./configure \
|
||||
--build=${BUILD} \
|
||||
--host=${HOST} \
|
||||
|
||||
@ -15,7 +15,7 @@ function recipe_update {
|
||||
function recipe_build {
|
||||
sysroot="$(realpath ../sysroot)"
|
||||
export CFLAGS="-I$sysroot/include"
|
||||
export LDFLAGS="-L$sysroot/lib"
|
||||
export LDFLAGS="-L$sysroot/lib --static"
|
||||
wget -O build-aux/config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
|
||||
./configure \
|
||||
--build=${BUILD} \
|
||||
|
||||
@ -15,7 +15,7 @@ function recipe_update {
|
||||
function recipe_build {
|
||||
sysroot="$(realpath ../sysroot)"
|
||||
export CFLAGS="-I$sysroot/include"
|
||||
export LDFLAGS="-L$sysroot/lib"
|
||||
export LDFLAGS="-L$sysroot/lib --static"
|
||||
glib_cv_stack_grows=no glib_cv_uscore=no ./autogen.sh \
|
||||
--build=${BUILD} \
|
||||
--host=${HOST} \
|
||||
|
||||
@ -17,7 +17,17 @@ function recipe_build {
|
||||
mkdir -p "$sysroot/usr"
|
||||
ln -sf "$sysroot/include" "$sysroot/usr/include"
|
||||
ln -sf "$sysroot/lib" "$sysroot/usr/lib"
|
||||
./configure --build=${BUILD} --host=${HOST} --target=${HOST} --prefix=/ --with-sysroot=/ --with-build-sysroot="$sysroot" --disable-gdb --disable-nls --disable-werror
|
||||
export LDFLAGS="--static"
|
||||
./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,6 +12,7 @@ function recipe_update {
|
||||
}
|
||||
|
||||
function recipe_build {
|
||||
export LDFLAGS="-static"
|
||||
./configure --build=${BUILD} --host=${HOST} --prefix=/
|
||||
make -j"$(nproc)"
|
||||
skip=1
|
||||
|
||||
@ -12,7 +12,13 @@ function recipe_update {
|
||||
}
|
||||
|
||||
function recipe_build {
|
||||
./configure --build=${BUILD} --host=${HOST} --prefix=/ CFLAGS="-DPOSIX -DNO_ARCHIVES -DNO_OUTPUT_SYNC" --without-guile
|
||||
export CFLAGS="-DPOSIX -DNO_ARCHIVES -DNO_OUTPUT_SYNC"
|
||||
export LDFLAGS="-static"
|
||||
./configure \
|
||||
--build=${BUILD} \
|
||||
--host=${HOST} \
|
||||
--prefix=/ \
|
||||
--without-guile
|
||||
make -j"$(nproc)"
|
||||
skip=1
|
||||
}
|
||||
|
||||
@ -15,7 +15,7 @@ function recipe_update {
|
||||
function recipe_build {
|
||||
sysroot="$(realpath ../sysroot)"
|
||||
export CFLAGS="-I$sysroot/include"
|
||||
export LDFLAGS="-L$sysroot/lib"
|
||||
export LDFLAGS="-L$sysroot/lib --static"
|
||||
export GLIB_GENMARSHAL="$(which glib-genmarshal)"
|
||||
export GLIB_MKENUMS="$(which glib-mkenums)"
|
||||
./configure \
|
||||
|
||||
@ -12,6 +12,7 @@ function recipe_update {
|
||||
}
|
||||
|
||||
function recipe_build {
|
||||
export LDFLAGS="--static"
|
||||
./configure --build=${BUILD} --host=${HOST} --prefix='/' --disable-shared --enable-static
|
||||
make -j"$(nproc)"
|
||||
skip=1
|
||||
|
||||
@ -12,6 +12,7 @@ function recipe_update {
|
||||
}
|
||||
|
||||
function recipe_build {
|
||||
export LDFLAGS="--static"
|
||||
./configure --build=${BUILD} --host=${HOST} --prefix='/'
|
||||
make -j"$(nproc)"
|
||||
skip=1
|
||||
|
||||
@ -14,8 +14,8 @@ function recipe_update {
|
||||
|
||||
function recipe_build {
|
||||
sysroot="$(realpath ../sysroot)"
|
||||
export LDFLAGS="-L$sysroot/lib"
|
||||
export CPPFLAGS="-I$sysroot/include"
|
||||
export LDFLAGS="-L$sysroot/lib --static"
|
||||
chmod +w config.sub
|
||||
wget -O config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
|
||||
./configure --build=${BUILD} --host=${HOST} --prefix='/'
|
||||
|
||||
@ -26,6 +26,7 @@ function recipe_build {
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DCMAKE_CROSSCOMPILING=True
|
||||
-DCMAKE_CXX_FLAGS="--std=gnu++11"
|
||||
-DCMAKE_EXE_LINKER_FLAGS="-static"
|
||||
-DCMAKE_RANLIB="$(which "${RANLIB}")"
|
||||
-DCMAKE_INSTALL_PREFIX="/"
|
||||
-DCMAKE_SYSTEM_NAME=Generic
|
||||
|
||||
@ -16,7 +16,7 @@ function recipe_update {
|
||||
function recipe_build {
|
||||
sysroot="$(realpath ../sysroot)"
|
||||
export CFLAGS="-I$sysroot/include -I$sysroot/include/SDL"
|
||||
export LDFLAGS="-L$sysroot/lib"
|
||||
export LDFLAGS="-L$sysroot/lib -static"
|
||||
|
||||
mkdir -p build
|
||||
cd build
|
||||
|
||||
@ -12,6 +12,7 @@ function recipe_update {
|
||||
}
|
||||
|
||||
function recipe_build {
|
||||
export LDFLAGS="-static"
|
||||
./configure --build=${BUILD} --host=${HOST} --prefix=""
|
||||
make -j"$(nproc)"
|
||||
skip=1
|
||||
|
||||
@ -13,8 +13,8 @@ function recipe_update {
|
||||
}
|
||||
function recipe_build {
|
||||
sysroot="$PWD/../sysroot"
|
||||
export LDFLAGS="-L$sysroot/lib"
|
||||
export CPPFLAGS="-I$sysroot/include -I$sysroot/include/ncurses"
|
||||
export LDFLAGS="-L$sysroot/lib -static"
|
||||
./configure \
|
||||
--build=${BUILD} \
|
||||
--host="$HOST" \
|
||||
|
||||
@ -16,7 +16,7 @@ function recipe_build {
|
||||
sysroot="$(realpath ../sysroot)"
|
||||
export CFLAGS="-I$sysroot/include -UUSE_SOCKETS -UUSE_SDL_NET"
|
||||
export CPPFLAGS="$CFLAGS"
|
||||
export LDFLAGS="-L$sysroot/lib"
|
||||
export LDFLAGS="-L$sysroot/lib -static"
|
||||
touch INSTALL NEWS README AUTHORS ChangeLog COPYING
|
||||
autoreconf -fvi
|
||||
autoconf
|
||||
|
||||
@ -19,7 +19,7 @@ function recipe_prepare {
|
||||
function recipe_build {
|
||||
sysroot="$(realpath ../sysroot)"
|
||||
set -x
|
||||
"${CXX}" -O2 -I "$sysroot/include" -L "$sysroot/lib" osdemo.c -o osdemo -lorbital $("${PKG_CONFIG}" --libs glu) -lglapi -lz
|
||||
"${CXX}" -O2 -I "$sysroot/include" -L "$sysroot/lib" osdemo.c -o osdemo -static -lorbital $("${PKG_CONFIG}" --libs glu) -lglapi -lz
|
||||
set +x
|
||||
skip=1
|
||||
}
|
||||
|
||||
@ -12,6 +12,7 @@ function recipe_update {
|
||||
}
|
||||
|
||||
function recipe_build {
|
||||
export LDFLAGS="-static"
|
||||
wget -O build-aux/config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
|
||||
autoreconf
|
||||
./configure --build=${BUILD} --host=${HOST} --prefix=/
|
||||
|
||||
@ -15,7 +15,7 @@ function recipe_update {
|
||||
function recipe_build {
|
||||
sysroot="$(realpath ../sysroot)"
|
||||
export CFLAGS="-I$sysroot/include"
|
||||
export LDFLAGS="-L$sysroot/lib"
|
||||
export LDFLAGS="-L$sysroot/lib --static"
|
||||
./configure \
|
||||
--build=${BUILD} \
|
||||
--host=${HOST} \
|
||||
|
||||
@ -16,7 +16,7 @@ function recipe_update {
|
||||
function recipe_build {
|
||||
sysroot="${PWD}/../sysroot"
|
||||
export CFLAGS="-I$sysroot/include -I$sysroot/include/SDL"
|
||||
export LDFLAGS="-L$sysroot/lib"
|
||||
export LDFLAGS="-L$sysroot/lib -static"
|
||||
export SDL_CONFIG="$sysroot/bin/sdl-config"
|
||||
autoreconf -i
|
||||
./configure --build=${BUILD} --host=${HOST} --prefix=''
|
||||
|
||||
@ -16,7 +16,7 @@ function recipe_update {
|
||||
function recipe_build {
|
||||
wget -O config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
|
||||
sysroot="$(realpath ../sysroot)"
|
||||
|
||||
export LDFLAGS="-static"
|
||||
./configure \
|
||||
--host=${HOST} \
|
||||
--prefix='' \
|
||||
|
||||
@ -14,7 +14,7 @@ function recipe_update {
|
||||
function recipe_build {
|
||||
sysroot="$(realpath ../sysroot)"
|
||||
export CPPFLAGS="-I$sysroot/include"
|
||||
export LDFLAGS="-L$sysroot/lib"
|
||||
export LDFLAGS="-L$sysroot/lib -static"
|
||||
make -j"$(nproc)"
|
||||
skip=1
|
||||
}
|
||||
|
||||
@ -12,7 +12,11 @@ function recipe_update {
|
||||
}
|
||||
|
||||
function recipe_build {
|
||||
./configure --build=${BUILD} --host=${HOST} --prefix=/
|
||||
export LDFLAGS="-static"
|
||||
./configure \
|
||||
--build=${BUILD} \
|
||||
--host=${HOST} \
|
||||
--prefix=/
|
||||
make -j"$(nproc)"
|
||||
skip=1
|
||||
}
|
||||
|
||||
@ -16,9 +16,13 @@ function recipe_build {
|
||||
wget -O autotools/config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
|
||||
sysroot="$(realpath ../sysroot)"
|
||||
export CFLAGS="-I$sysroot/include -I$sysroot/include/SDL"
|
||||
export LDFLAGS="-L$sysroot/lib"
|
||||
export LDFLAGS="-L$sysroot/lib -static"
|
||||
export LIBS="-lSDL -lorbital" # TODO: Uses sdl-config instead of pkg-config
|
||||
./configure --build=${BUILD} --host=${HOST} --prefix='' --with-sdl-prefix="$sysroot"
|
||||
./configure \
|
||||
--build=${BUILD} \
|
||||
--host=${HOST} \
|
||||
--prefix='' \
|
||||
--with-sdl-prefix="$sysroot"
|
||||
make -j"$(nproc)"
|
||||
skip=1
|
||||
}
|
||||
|
||||
@ -14,9 +14,14 @@ function recipe_update {
|
||||
}
|
||||
|
||||
function recipe_build {
|
||||
export LDFLAGS="-static"
|
||||
autoreconf -f -i
|
||||
wget -O autoconf/config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
|
||||
./configure --build=${BUILD} --host=${HOST} --prefix='' --enable-vt100
|
||||
./configure \
|
||||
--build=${BUILD} \
|
||||
--host=${HOST} \
|
||||
--prefix='' \
|
||||
--enable-vt100
|
||||
make -j"$(nproc)"
|
||||
skip=1
|
||||
}
|
||||
|
||||
@ -20,7 +20,7 @@ function recipe_build {
|
||||
export sdl_config="$sysroot/bin/sdl-config"
|
||||
export CFLAGS="-I$sysroot/include -I$sysroot/include/SDL"
|
||||
export CXXFLAGS="$CFLAGS"
|
||||
export LDFLAGS="-L$sysroot/lib"
|
||||
export LDFLAGS="-L$sysroot/lib -static"
|
||||
|
||||
./configure \
|
||||
--build=${BUILD} \
|
||||
|
||||
@ -15,7 +15,7 @@ function recipe_update {
|
||||
|
||||
function recipe_build {
|
||||
sysroot="$(realpath ../sysroot)"
|
||||
export LDFLAGS="-L$sysroot/lib"
|
||||
export LDFLAGS="-L$sysroot/lib -static"
|
||||
export CPPFLAGS="-I$sysroot/include"
|
||||
export vim_cv_toupper_broken=set
|
||||
export vim_cv_terminfo=no
|
||||
|
||||
@ -12,8 +12,12 @@ function recipe_update {
|
||||
}
|
||||
|
||||
function recipe_build {
|
||||
export LDFLAGS="-static"
|
||||
wget -O config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
|
||||
./configure --build=${BUILD} --host=${HOST} --prefix=''
|
||||
./configure \
|
||||
--build=${BUILD} \
|
||||
--host=${HOST} \
|
||||
--prefix=''
|
||||
make -j"$(nproc)"
|
||||
skip=1
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user