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 - Configure fails to detect dynamic library support on powerpc64le
Summary: Configure fails to detect dynamic library support on powerpc64le
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: HG 2.1
Hardware: PowerPC Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-07 03:25 UTC by Sam
Modified: 2016-11-07 04:33 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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