Skip to content

Commit

Permalink
Fixed bug #193
Browse files Browse the repository at this point in the history
The attached patch is mostly cosmetic: Currently, we always add both -framework
OpenGL and -framework AGL for Mac OS X command line builds.

However, the former is only used for the Cocoa video driver, and the latter
only for the Carbon video driver (as far as I can tell, at least). Hence the
attached patch modifies configure.in so that each only gets added to the list
of frameworks if the corresponding video driver is enabled.
  • Loading branch information
slouken committed Apr 13, 2006
1 parent 8d5c464 commit 1b1edf4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions configure.in
Expand Up @@ -1444,9 +1444,12 @@ CheckMacGL()
AC_DEFINE(SDL_VIDEO_OPENGL)
case "$host" in
*-*-darwin*)
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGL"
# The following is probably not available in Darwin:
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AGL"
if test x$enable_video_cocoa = xyes; then
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGL"
fi
if test x$enable_video_carbon = xyes; then
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AGL"
fi
esac
fi
}
Expand Down

0 comments on commit 1b1edf4

Please sign in to comment.