diff options
Diffstat (limited to 'libraries/qt4/profile.d/qt4.sh')
-rw-r--r-- | libraries/qt4/profile.d/qt4.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libraries/qt4/profile.d/qt4.sh b/libraries/qt4/profile.d/qt4.sh new file mode 100644 index 0000000000..96c9e7ce83 --- /dev/null +++ b/libraries/qt4/profile.d/qt4.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +# Environment variables for the qt4 package. + +# It's a very bad idea to make this script executable. Anything that +# needs to build with qt4 should instead source this script. Failure +# to follow this advice will likely break various builds that use qt5. + +QT4DIR=/usr/lib/qt4 + +if [ ! "$CPLUS_INCLUDE_PATH" = "" ]; then + CPLUS_INCLUDE_PATH=$QT4DIR/include:$CPLUS_INCLUDE_PATH +else + CPLUS_INCLUDE_PATH=$QT4DIR/include +fi + +# put the qt4 stuff first in $PATH, so running e.g. 'qmake' will +# run the qt4 version, not the qt5 one. +PATH="$QT4DIR/bin:$PATH" + +export QT4DIR +export CPLUS_INCLUDE_PATH |