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 does not honor --libdir for Runtime LibDir #220

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

configure does not honor --libdir for Runtime LibDir #220

SDLBugzilla opened this issue Feb 10, 2021 · 0 comments

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

Reported in version: 1.2.11
Reported for operating system, platform: Solaris, x86

Comments on the original bug report:

On 2006-09-04 10:27:33 +0000, Juergen Zimmermann wrote:

Hi,
if "configure" is given an explicit --libdir, the sdl-config still contains
the default "${exec_prefix}/lib" for runtime linker path.

That should be changed to $libdir, as this is where the library goes to...

Regards,
Juergen

diff -ur SDL-1.2.11.orig/configure SDL-1.2.11.jnz/configure
--- SDL-1.2.11.orig/configure Tue Jun 27 06:48:54 2006
+++ SDL-1.2.11.jnz/configure Mon Sep 4 15:28:28 2006
@@ -33170,10 +33170,10 @@

if test "x$enable_rpath" = "xyes"; then
if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = irix -o $ARCH = linux -o $ARCH = netbsd; then

  • SDL_RLD_FLAGS="-Wl,-rpath,${exec_prefix}/lib"
  • SDL_RLD_FLAGS="-Wl,-rpath,${libdir}"
    fi
    if test $ARCH = solaris; then
  • SDL_RLD_FLAGS="-R${exec_prefix}/lib"
  • SDL_RLD_FLAGS="-R${libdir}"
    fi
    else
    SDL_RLD_FLAGS=""
    @@ -33188,7 +33188,7 @@
    SDL_LIBS="$SDL_LIBS -Wl,-framework,Carbon"
    fi

    Evil hack to allow static linking on Mac OS X

  • SDL_STATIC_LIBS="${exec_prefix}/lib/libSDLmain.a ${exec_prefix}/lib/libSDL.a $EXTRA_LDFLAGS"
  • SDL_STATIC_LIBS="${libdir}/libSDLmain.a ${libdir}/libSDL.a $EXTRA_LDFLAGS"
    ;;
    *)
    SDL_STATIC_LIBS="$SDL_LIBS"
    diff -ur SDL-1.2.11.orig/configure.in SDL-1.2.11.jnz/configure.in
    --- SDL-1.2.11.orig/configure.in Tue Jun 27 06:48:33 2006
    +++ SDL-1.2.11.jnz/configure.in Mon Sep 4 15:29:05 2006
    @@ -2612,10 +2612,10 @@

if test "x$enable_rpath" = "xyes"; then
if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = irix -o $ARCH = linux -o $ARCH = netbsd; then

  • SDL_RLD_FLAGS="-Wl,-rpath,${exec_prefix}/lib"
  • SDL_RLD_FLAGS="-Wl,-rpath,${libdir}"
    fi
    if test $ARCH = solaris; then
  • SDL_RLD_FLAGS="-R${exec_prefix}/lib"
  • SDL_RLD_FLAGS="-R${libdir}"
    fi
    else
    SDL_RLD_FLAGS=""
    @@ -2630,7 +2630,7 @@
    SDL_LIBS="$SDL_LIBS -Wl,-framework,Carbon"
    fi

    Evil hack to allow static linking on Mac OS X

  • SDL_STATIC_LIBS="${exec_prefix}/lib/libSDLmain.a ${exec_prefix}/lib/libSDL.a $EXTRA_LDFLAGS"
  • SDL_STATIC_LIBS="${libdir}/libSDLmain.a ${libdir}/libSDL.a $EXTRA_LDFLAGS"
    ;;
    *)
    SDL_STATIC_LIBS="$SDL_LIBS"

On 2006-09-23 20:44:15 +0000, Sam Lantinga wrote:

This is fixed in subversion, thanks!

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

No branches or pull requests

1 participant