summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2012-06-03 14:16:40 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2012-06-03 14:16:40 (GMT)
commitc2f19f450b037fb28a269ad2ff5c228dfa6d5dad (patch)
treec462aef6ce00b803f48ee2a9e6685298288aa76d
parent45c86b5a5a227447bd58ee4484ab1b3dae1e8f01 (diff)
more reliable way of ensuring GLU is linked on new DSO linux systems.
-rw-r--r--openscad.pro10
1 files changed, 7 insertions, 3 deletions
diff --git a/openscad.pro b/openscad.pro
index 453ab77..591ed5f 100644
--- a/openscad.pro
+++ b/openscad.pro
@@ -81,9 +81,13 @@ win32 {
CONFIG += qt
QT += opengl
-# Fedora Linux + DSO fix
-linux*:exists(/usr/lib64/libGLU*)|linux*:exists(/usr/lib/libGLU*) {
- LIBS += -lGLU
+# see http://fedoraproject.org/wiki/UnderstandingDSOLinkChange
+# and https://github.com/openscad/openscad/pull/119
+# ( QT += opengl does not automatically link glu on some DSO systems. )
+unix:!macx {
+ !contains ( QMAKE_LIBS_OPENGL, "-lGLU" ) {
+ QMAKE_LIBS_OPENGL += -lGLU
+ }
}
netbsd* {
contact: Jan Huwald // Impressum