]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
add lazy hack to fix jpeg problem. Needs to be turned into real fix
authorRudolf Polzer <divverent@xonotic.org>
Sun, 8 Sep 2013 17:19:04 +0000 (19:19 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Sun, 8 Sep 2013 17:19:04 +0000 (19:19 +0200)
later.

misc/tools/all/xonotic.subr

index 7214f4532190f0bd0ebaa6e012b3ea5a34c011a4..0e0fd5f05a68887f17626177ab09cc7c2d2ff3e1 100644 (file)
@@ -197,14 +197,22 @@ case "$cmd" in
                                                                #verbose cp "$d0/misc/builddeps/dp.linux64/lib/libd0_blind_id".* .libs/
                                                                #verbose cp "$d0/misc/builddeps/dp.linux64/lib/libd0_rijndael".* .libs/
                                                                #verbose cp "$d0/misc/builddeps/dp.linux64/lib/libgmp".* .libs/
+                                                               # FIXME(whoeverwantsto) get rid of this -I flag, as we just can't do this (the directory has other stuff, e.g. jpeg, inside).
+                                                               # FIXME(whoeverwantsto) maybe use the cp commands from above again, and load via dlopen again? Needs evaluation of whether they work.
                                                                export CC="$CC -I../../../../misc/builddeps/dp.linux32/include"
+                                                               export CC="$CC -L../../../../misc/builddeps/dp.linux32/lib"
+                                                               export CC="$CC -Wl,-rpath,../../../../misc/builddeps/dp.linux32/lib"
                                                                MAKEFLAGS="$MAKEFLAGS DP_LINK_CRYPTO=shared DP_LINK_CRYPTO_RIJNDAEL=shared LIB_CRYPTO=../../../../misc/builddeps/dp.linux64/lib/libd0_blind_id.a LIB_CRYPTO+=../../../../misc/builddeps/dp.linux64/lib/libgmp.a LIB_CRYPTO_RIJNDAEL=../../../../misc/builddeps/dp.linux64/lib/libd0_rijndael.a"
                                                                ;;
                                                        *86)
                                                                #verbose cp "$d0/misc/builddeps/dp.linux32/lib/libd0_blind_id".* .libs/
                                                                #verbose cp "$d0/misc/builddeps/dp.linux32/lib/libd0_rijndael".* .libs/
                                                                #verbose cp "$d0/misc/builddeps/dp.linux32/lib/libgmp".* .libs/
+                                                               # FIXME(whoeverwantsto) get rid of this -I flag, as we just can't do this (the directory has other stuff, e.g. jpeg, inside).
+                                                               # FIXME(whoeverwantsto) maybe use the cp commands from above again, and load via dlopen again? Needs evaluation of whether they work.
                                                                export CC="$CC -I../../../../misc/builddeps/dp.linux32/include"
+                                                               export CC="$CC -L../../../../misc/builddeps/dp.linux32/lib"
+                                                               export CC="$CC -Wl,-rpath,../../../../misc/builddeps/dp.linux32/lib"
                                                                MAKEFLAGS="$MAKEFLAGS DP_LINK_CRYPTO=shared DP_LINK_CRYPTO_RIJNDAEL=shared LIB_CRYPTO=../../../../misc/builddeps/dp.linux32/lib/libd0_blind_id.a LIB_CRYPTO+=../../../../misc/builddeps/dp.linux32/lib/libgmp.a LIB_CRYPTO_RIJNDAEL=../../../../misc/builddeps/dp.linux32/lib/libd0_rijndael.a"
                                                                ;;
                                                        *)