summaryrefslogtreecommitdiff
path: root/openscad.pro
diff options
context:
space:
mode:
Diffstat (limited to 'openscad.pro')
-rw-r--r--openscad.pro9
1 files changed, 9 insertions, 0 deletions
diff --git a/openscad.pro b/openscad.pro
index 6d9556b..0048963 100644
--- a/openscad.pro
+++ b/openscad.pro
@@ -101,6 +101,15 @@ netbsd* {
}
}
+# Prevent LD_LIBRARY_PATH problems when running the openscad binary
+# on systems where uni-build-dependencies.sh was used.
+# Will not affect 'normal' builds. Also this is not tested on Mac
+!isEmpty(OPENSCAD_LIBDIR) {
+ unix:!macx {
+ QMAKE_LFLAGS = -Wl,-R$$OPENSCAD_LIBDIR/lib $$QMAKE_LFLAGS
+ }
+}
+
# See Dec 2011 OpenSCAD mailing list, re: CGAL/GCC bugs.
*g++* {
QMAKE_CXXFLAGS *= -fno-strict-aliasing
contact: Jan Huwald // Impressum