sdl-config doesn't include the OpenGL library in --libs
authorSam Lantinga <slouken@libsdl.org>
Thu, 11 May 2006 04:16:39 +0000
changeset 1813 a7cda692b681
parent 1812 9c882e94b545
child 1814 1834c192d89f
sdl-config doesn't include the OpenGL library in --libs
configure.in
test/configure.in
--- a/configure.in	Thu May 11 03:45:55 2006 +0000
+++ b/configure.in	Thu May 11 04:16:39 2006 +0000
@@ -2575,9 +2575,6 @@
     if test x$enable_video = xyes -a x$enable_video_carbon = xyes; then
       SDL_LIBS="$SDL_LIBS -Wl,-framework,Carbon"
     fi
-    if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
-      SDL_LIBS="$SDL_LIBS -Wl,-framework,OpenGL"
-    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"
     ;;
--- a/test/configure.in	Thu May 11 03:45:55 2006 +0000
+++ b/test/configure.in	Thu May 11 04:16:39 2006 +0000
@@ -28,7 +28,7 @@
     *-*-darwin* )
         EXE=""
         MATHLIB=""
-        SYS_GL_LIBS=""
+        SYS_GL_LIBS="-Wl,-framework,OpenGL"
         ;;
     *-*-aix*)
         EXE=""