Commit b14c5cd1971b9289d26cde5afce992412fc466ce

brlcad 2008-05-04T04:29:59

GLUT framework needs the OpenGL framework, use the same Xlinker hack for libtool

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/m4/glut.m4 b/m4/glut.m4
index 4947189..4a2b0b8 100644
--- a/m4/glut.m4
+++ b/m4/glut.m4
@@ -77,7 +77,7 @@ if test "$ac_cv_have_glut" = "yes"; then
 
     if test "$ac_cv_have_glut" = "no"; then
 	# Try again with GLUT framework
-	LIBS="-framework GLUT"
+	LIBS="-Xlinker -framework -Xlinker OpenGL -Xlinker -framework -Xlinker GLUT"
         AC_LINK_IFELSE(
             [AC_LANG_CALL([],[glutInit])],
             [ac_cv_have_glut=yes],