From fb56368aa0a710ee169b9a2a9cd6d04d2374b274 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 9 Nov 2001 00:00:04 +0000 Subject: [PATCH] add -lm before checking for -lGL git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12360 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- configure.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.in b/configure.in index c9dd14497a..1cc7b57f43 100644 --- a/configure.in +++ b/configure.in @@ -2313,6 +2313,11 @@ if test "$wxUSE_OPENGL" = "yes"; then if test "$wxUSE_MAC" = 1; then OPENGL_LIBS="-framework OpenGL -framework AGL" else + dnl -lGL requires -lm with soem OpenGL versions - although it would, of + dnl course, be cleaner to test first without -lm and then with it, I don't + dnl have time for this now so just always add -lm + LIBS="$LIBS -lm" + dnl check for OpenGL libs availability first AC_CHECK_HEADER(GL/gl.h, [ AC_CHECK_LIB(GL, glFlush, [ -- 2.45.2