We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3481

Summary: Configure fails to detect dynamic library support on powerpc64le
Product: SDL Reporter: Sam <sam.bobroff>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.1   
Hardware: PowerPC   
OS: Linux   

Description Sam 2016-11-07 03:25:39 UTC
Hi SDL,

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.

*** a/acinclude/libtool.m4	2016-11-07 14:04:47.444117880 +1100
--- b/acinclude/libtool.m4	2016-11-07 14:05:03.652181547 +1100
***************
*** 1302,1308 ****
  	  x86_64-*linux*)
  	    LD="${LD-ld} -m elf_x86_64"
  	    ;;
! 	  ppc*-*linux*|powerpc*-*linux*)
  	    LD="${LD-ld} -m elf64ppc"
  	    ;;
  	  s390*-*linux*|s390*-*tpf*)
--- 1302,1311 ----
  	  x86_64-*linux*)
  	    LD="${LD-ld} -m elf_x86_64"
  	    ;;
! 	  powerpc64le-*linux*)
! 	    LD="${LD-ld} -m elf64lppc"
! 	    ;;
! 	  powerpc64-*linux*)
  	    LD="${LD-ld} -m elf64ppc"
  	    ;;
  	  s390*-*linux*|s390*-*tpf*)
Comment 1 Sam Lantinga 2016-11-07 04:33:48 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/e75e81f94e47