Fixed bug 3481 - Configure fails to detect dynamic library support on powerpc64le
authorSam Lantinga <slouken@libsdl.org>
Sun, 06 Nov 2016 20:26:48 -0800
changeset 10590e75e81f94e47
parent 10589 f781e05bcfb5
child 10591 9717b0804467
Fixed bug 3481 - Configure fails to detect dynamic library support on powerpc64le

Sam

I've discovered that when building on powerpc64le (and probably powerpc64) SDL's configure script fails to detect dynamic library support, causing it to build a static library. This causes link failures due to undefined symbols later when packages link with -lSDL.

This seems to be because the included autotools package is too old to detect powerpc64le. This change corrects the problem for me but newer versions of autotools should handle it without a patch
acinclude/libtool.m4
     1.1 --- a/acinclude/libtool.m4	Sun Nov 06 15:15:32 2016 -0800
     1.2 +++ b/acinclude/libtool.m4	Sun Nov 06 20:26:48 2016 -0800
     1.3 @@ -1347,7 +1347,10 @@
     1.4  	  x86_64-*linux*)
     1.5  	    LD="${LD-ld} -m elf_x86_64"
     1.6  	    ;;
     1.7 -	  ppc*-*linux*|powerpc*-*linux*)
     1.8 +	  powerpc64le-*linux*)
     1.9 +	    LD="${LD-ld} -m elf64lppc"
    1.10 +	    ;;
    1.11 +	  powerpc64-*linux*)
    1.12  	    LD="${LD-ld} -m elf64ppc"
    1.13  	    ;;
    1.14  	  s390*-*linux*|s390*-*tpf*)