mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-06 08:26:50 +01:00
system/virtualbox-addons: Fake gcc-9.x support.
It actually builds! Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
parent
b41b5dbf8e
commit
33efdbf2c7
1 changed files with 14 additions and 16 deletions
|
@ -86,22 +86,20 @@ find -L . \
|
|||
# Use virtualbox-kernel-addons.SlackBuild for this.
|
||||
patch -d src/VBox/Additions/linux/installer/ -i $CWD/rc.vboxadd.diff
|
||||
|
||||
# We set the environment variables manually to avoid dependency on acpica
|
||||
export BUILD_PLATFORM="linux"
|
||||
export BUILD_PLATFORM_ARCH="$TARGET"
|
||||
export BUILD_TARGET="linux"
|
||||
export BUILD_TARGET_ARCH="$TARGET"
|
||||
export BUILD_TARGET_CPU="$ARCH"
|
||||
export BUILD_TYPE="release"
|
||||
export PATH_KBUILD="$TMP/$SRCNAM-${VERSION}/kBuild"
|
||||
export PATH_DEVTOOLS="$TMP/$SRCNAM-${VERSION}/tools"
|
||||
path_kbuild_bin="$PATH_KBUILD/bin/$BUILD_TARGET.$BUILD_PLATFORM_ARCH"
|
||||
export PATH_KBUILD_BIN="$path_kbuild_bin"
|
||||
path_dev_bin="$PATH_DEVTOOLS/$BUILD_TARGET.$BUILD_PLATFORM_ARCH"/bin
|
||||
echo "$PATH" | grep -q "$path_kbuild_bin" || PATH="$path_kbuild_bin:$PATH"
|
||||
echo "$PATH" | grep -q "$path_dev_bin" || PATH="$path_dev_bin:$PATH"
|
||||
export PATH
|
||||
unset path_kbuild_bin path_dev_bin
|
||||
# Cheat!
|
||||
sed -i "s|cc_maj -gt 7|cc_maj -gt 9|" configure
|
||||
|
||||
./configure \
|
||||
--only-additions \
|
||||
--disable-kmods \
|
||||
--with-makeself=/usr/bin/echo
|
||||
|
||||
. ./env.sh
|
||||
|
||||
OPENSSL=$(grep openssl src/libs/Makefile.kmk | cut -d "/" -f 2)
|
||||
|
||||
mkdir -p src/libs/$OPENSSL
|
||||
touch src/libs/$OPENSSL/Makefile.kmk
|
||||
|
||||
kmk -j ${JOBS} LOCALCFG=$CWD/LocalConfig.kmk
|
||||
|
||||
|
|
Loading…
Reference in a new issue