From cc56203b76e1fcef2c7e55b460daf07e654a1547 Mon Sep 17 00:00:00 2001 From: notaz Date: Mon, 5 Nov 2012 00:28:57 +0200 Subject: switch over to libpicofe - libretro should not be affected by this, all others need to do 'git submodule init && git submodule update' from now on. - pandora should get gamma control support --- configure | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'configure') diff --git a/configure b/configure index da126e7..c7e7caf 100755 --- a/configure +++ b/configure @@ -48,6 +48,8 @@ have_arm_neon="" have_tslib="" enable_dynarec="yes" need_sdl="no" +need_libpicofe="yes" +need_warm="no" # these are for known platforms optimize_cortexa8="no" optimize_arm926ej="no" @@ -91,9 +93,11 @@ set_platform() ram_fixed="yes" drc_cache_base="yes" optimize_arm926ej="yes" + need_warm="yes" ;; libretro) sound_drivers="libretro" + need_libpicofe="no" ;; *) fail "unsupported platform: $platform" @@ -156,6 +160,18 @@ if [ "x$sound_drivers" != "x" ]; then done fi +if [ "$need_libpicofe" = "yes" ]; then + if ! test -f "frontend/libpicofe/README"; then + fail "libpicofe is missing, please run 'git submodule init && git submodule update'" + fi +fi + +if [ "$need_warm" = "yes" ]; then + if ! test -f "frontend/warm/README"; then + fail "wARM is missing, please run 'git submodule init && git submodule update'" + fi +fi + if [ -z "$ARCH" ]; then ARCH=`$CC -v 2>&1 | grep -i 'target:' | awk '{print $2}' \ | awk -F '-' '{print $1}'` -- cgit v1.2.3 From 22fa3f2b3d09f3694f938ca895d447a30ec96f25 Mon Sep 17 00:00:00 2001 From: notaz Date: Mon, 5 Nov 2012 00:58:51 +0200 Subject: detect undefined symbols early --- configure | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'configure') diff --git a/configure b/configure index c7e7caf..0f0308b 100755 --- a/configure +++ b/configure @@ -274,7 +274,7 @@ maemo) ;; libretro) CFLAGS="$CFLAGS -fPIC" - LDFLAGS="$LDFLAGS -shared" + MAIN_LDFLAGS="$MAIN_LDFLAGS -shared -Wl,--no-undefined" ;; esac @@ -427,7 +427,7 @@ echo "plugins $plugins_short" echo "C compiler $CC" echo "C compiler flags $CFLAGS" echo "libraries $MAIN_LDLIBS" -echo "linker flags $LDFLAGS" +echo "linker flags $LDFLAGS$MAIN_LDFLAGS" echo "enable dynarec $enable_dynarec" echo "ARMv7 optimizations $have_armv7" echo "enable ARM NEON $have_arm_neon" @@ -444,6 +444,7 @@ echo "AS = $AS" >> $config_mak echo "CFLAGS += $CFLAGS" >> $config_mak echo "ASFLAGS += $ASFLAGS" >> $config_mak echo "LDFLAGS += $LDFLAGS" >> $config_mak +echo "MAIN_LDFLAGS += $MAIN_LDFLAGS" >> $config_mak echo "MAIN_LDLIBS += $MAIN_LDLIBS" >> $config_mak echo "PLUGIN_CFLAGS += $PLUGIN_CFLAGS" >> $config_mak echo >> $config_mak -- cgit v1.2.3 From 8e1040b6a82ee1802fda83d4de84290a02656cc0 Mon Sep 17 00:00:00 2001 From: notaz Date: Mon, 5 Nov 2012 03:11:29 +0200 Subject: sort out 32/64bit savestate compat issues --- configure | 7 ------- 1 file changed, 7 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 0f0308b..42ab9f5 100755 --- a/configure +++ b/configure @@ -246,13 +246,6 @@ if [ "x$builtin_gpu" = "x" ]; then builtin_gpu="peops" fi -#if [ "$ARCH" = "x86_64" ]; then - # currently we are full of 32bit assumptions, - # at least savestate compatibility will break without these -# CFLAGS="$CFLAGS -m32" -# LDFLAGS="$LDFLAGS -m32" -#fi - # supposedly we can avoid -fPIC on armv5 for slightly better performace? if [ "$ARCH" != "arm" -o "$have_armv6" = "yes" ]; then PLUGIN_CFLAGS="$PLUGIN_CFLAGS -fPIC" -- cgit v1.2.3 From ddd99692bc3e1246c2ccb5e551512f35b4f7959a Mon Sep 17 00:00:00 2001 From: notaz Date: Wed, 21 Nov 2012 02:38:10 +0200 Subject: plugins: drop arch filename extensions they do more harm than good --- configure | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 42ab9f5..9668a27 100755 --- a/configure +++ b/configure @@ -449,15 +449,7 @@ echo "ARCH = $ARCH" >> $config_mak echo "PLATFORM = $platform" >> $config_mak echo "BUILTIN_GPU = $builtin_gpu" >> $config_mak echo "SOUND_DRIVERS = $sound_drivers" >> $config_mak -if [ "$ARCH" = "arm" ]; then - echo "PLUGINS = $plugins" >> $config_mak -else - echo -n "PLUGINS =" >> $config_mak - for p in $plugins; do - echo -n " ${p}.${ARCH}" >> $config_mak - done - echo >> $config_mak -fi +echo "PLUGINS = $plugins" >> $config_mak if [ "$have_armv6" = "yes" ]; then echo "HAVE_ARMV6 = 1" >> $config_mak fi -- cgit v1.2.3 From 7a929cb6273a2a784405d8ec934df6cbe10a8018 Mon Sep 17 00:00:00 2001 From: notaz Date: Sat, 24 Nov 2012 04:22:03 +0200 Subject: drop bzlib dependency it turns out it's not needed. --- configure | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 9668a27..4cff898 100755 --- a/configure +++ b/configure @@ -281,15 +281,6 @@ EOF compile_binary } -check_bzlib() -{ - cat > $TMPC < - void main() { BZ2_bzBuffToBuffDecompress(0, 0, 0, 0, 0, 0); } -EOF - compile_object -} - check_libpng() { cat > $TMPC <