aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-01-18 13:20:01 -0500
committerKen Moore <moorekou@gmail.com>2016-01-18 13:20:01 -0500
commit9424f542845b74b44461703f4a39af1919184507 (patch)
treea09e603da2d91d3987e781786779f7fad4b9ca52
parentMerge branch 'master' of github.com:pcbsd/lumina (diff)
downloadlumina-9424f542845b74b44461703f4a39af1919184507.tar.gz
lumina-9424f542845b74b44461703f4a39af1919184507.tar.bz2
lumina-9424f542845b74b44461703f4a39af1919184507.zip
Adjust the Linux/Fedora build options a bit: Now Linux systems will use /usr for the PREFIX by default, (except Fedora: /usr/local there)
-rw-r--r--OS-detect.pri6
1 files changed, 5 insertions, 1 deletions
diff --git a/OS-detect.pri b/OS-detect.pri
index 99e60f04..1422130c 100644
--- a/OS-detect.pri
+++ b/OS-detect.pri
@@ -54,6 +54,8 @@
L_SESSDIR=/usr/share/xsessions
OS=Linux
LIBS += -L/usr/local/lib -L/usr/lib -L/lib
+ PREFIX = /usr
+
exists(/bin/lsb_release){
LINUX_DISTRO = $$system(lsb_release -si)
} else:exists(/usr/bin/lsb_release){
@@ -63,12 +65,14 @@
#Now switch through known Linux distro templates
equals(LINUX_DISTRO, "Fedora"){
PREFIX=/usr/local
- L_LIBDIR=/lib64
+ equals($${QMAKE_HOST.arch},"amd64"){ L_LIBDIR=/lib64 }
+ else{ L_LIBDIR=/lib }
}
}else{
OS="Unknown";
}
+
MSG="Build Settings Loaded: $${OS}"
equals(OS,"Linux"){ MSG+="-$${LINUX_DISTRO}" }
message( $$MSG )
bgstack15