Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure fails to detect dynamic library support on powerpc64le #2297

Closed
SDLBugzilla opened this issue Feb 11, 2021 · 0 comments
Closed

Configure fails to detect dynamic library support on powerpc64le #2297

SDLBugzilla opened this issue Feb 11, 2021 · 0 comments
Labels

Comments

@SDLBugzilla
Copy link
Collaborator

@SDLBugzilla SDLBugzilla commented Feb 11, 2021

This bug report was migrated from our old Bugzilla tracker.

Reported in version: HG 2.1
Reported for operating system, platform: Linux, PowerPC

Comments on the original bug report:

On 2016-11-07 03:25:39 +0000, Sam wrote:

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)

On 2016-11-07 04:33:48 +0000, Sam Lantinga wrote:

Fixed, thanks!
https://hg.libsdl.org/SDL/rev/e75e81f94e47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant