From b3ee9db650fc4a8a2203012512f159f20b05e113 Mon Sep 17 00:00:00 2001 From: Lyberta Date: Sun, 30 Apr 2017 20:43:26 +0300 Subject: [PATCH] Fixed d0_blind_id compilation for real this time. --- misc/tools/all/xonotic.subr | 42 ++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/misc/tools/all/xonotic.subr b/misc/tools/all/xonotic.subr index 3f936f5e..d35e83fa 100644 --- a/misc/tools/all/xonotic.subr +++ b/misc/tools/all/xonotic.subr @@ -26,7 +26,7 @@ case "$cmd" in cleandp=false cleanqcc=false cleanqc=false - compiled0=true + compiled0=false debug=debug if [ -z "$CC" ]; then export CC="gcc" @@ -193,27 +193,6 @@ case "$cmd" in verbose cp "$d0/misc/buildfiles/win32/libgmp"-* .libs/ else case "`uname`" in - Linux) - case `uname -m` in - x86_64) - # No cp commands, we want to use static linking instead. - MAKEFLAGS="$MAKEFLAGS DP_LINK_CRYPTO=shared DP_LINK_CRYPTO_RIJNDAEL=shared" - export CC="$CC -I../../../../" - export CC="$CC -L../../../../d0_blind_id/.libs" - export CC="$CC -Wl,-rpath,./d0_blind_id/.libs" - ;; - *86) - # No cp commands, we want to use static linking instead. - export CC="$CC -I../../../../" - export CC="$CC -L../../../../d0_blind_id/.libs" - export CC="$CC -Wl,-rpath,./d0_blind_id/.libs" - MAKEFLAGS="$MAKEFLAGS DP_LINK_CRYPTO=shared DP_LINK_CRYPTO_RIJNDAEL=shared" - ;; - *) - compiled0=true - ;; - esac - ;; Darwin) verbose cp "$d0/misc/buildfiles/osx/Xonotic.app/Contents/MacOS/libd0_blind_id".* .libs/ verbose cp "$d0/misc/buildfiles/osx/Xonotic.app/Contents/MacOS/libd0_rijndael".* .libs/ @@ -235,6 +214,25 @@ case "$cmd" in verbose ./configure fi verbose $MAKE $MAKEFLAGS + case "`uname`" in + Linux) + case `uname -m` in + x86_64) + # No cp commands, we want to use static linking instead. + MAKEFLAGS="$MAKEFLAGS DP_LINK_CRYPTO=shared DP_LINK_CRYPTO_RIJNDAEL=shared" + export CC="$CC -I../../../../" + export CC="$CC -L../../../../d0_blind_id/.libs" + export CC="$CC -Wl,-rpath,./d0_blind_id/.libs" + ;; + *86) + # No cp commands, we want to use static linking instead. + export CC="$CC -I../../../../" + export CC="$CC -L../../../../d0_blind_id/.libs" + export CC="$CC -Wl,-rpath,./d0_blind_id/.libs" + MAKEFLAGS="$MAKEFLAGS DP_LINK_CRYPTO=shared DP_LINK_CRYPTO_RIJNDAEL=shared" + ;; + esac + esac fi verbose cd "$d0/gmqcc" -- 2.39.2