diff options
author | Julien Isorce <julien.isorce@collabora.co.uk> | 2013-08-30 15:54:19 +0100 |
---|---|---|
committer | Julien Isorce <julien.isorce@collabora.co.uk> | 2013-08-30 15:54:19 +0100 |
commit | c0bdb6d4af3bdac05c53869a6b42a25b6ec8afcb (patch) | |
tree | 232a9e317d920783f653d6093e1e143c5d921411 | |
parent | b3aaa65829c1c540d113de47a8a4a385bdd4a3c9 (diff) |
configure.ac: add -lGLU only if glu is present
It fixes build on rpi because for some reason libgl1-mesa
has to be installed even if useless
-rw-r--r-- | configure.ac | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 73f1f65..928293f 100644 --- a/configure.ac +++ b/configure.ac @@ -501,7 +501,10 @@ case $host in dnl check Desktop OpenGL if test "x$HAVE_GL" = "xyes"; then if test "x$NEED_GL" != "xno"; then - GL_LIBS="$GL_LIBS -lGL -lGLU" + GL_LIBS="$GL_LIBS -lGL" + fi + if test "x$HAVE_GLU" = "xyes"; then + GL_LIBS="$GL_LIBS -lGLU" fi fi |