make RPATH work on uni-build-dependencies with GLEW on 64 bit machines

felipesanches-svg
don bright 2012-12-29 22:27:44 +01:00
parent 7afcc417b3
commit ed97940f56
1 changed files with 3 additions and 1 deletions

View File

@ -103,10 +103,12 @@ 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
# Will not affect 'normal' builds.
!isEmpty(OPENSCAD_LIBDIR) {
unix:!macx {
QMAKE_LFLAGS = -Wl,-R$$OPENSCAD_LIBDIR/lib $$QMAKE_LFLAGS
# need /lib64 beause GLEW installs itself there on 64 bit machines
QMAKE_LFLAGS = -Wl,-R$$OPENSCAD_LIBDIR/lib64 $$QMAKE_LFLAGS
}
}