From 393f446d0d1c627c2124bf59c6010fe7fdc74c11 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Fri, 19 Aug 2016 07:38:31 -0400 Subject: Add a special rule for Fedora (untested): L_ETCDIR=/etc (if otherwise unset) --- src-qt5/OS-detect.pri | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src-qt5') diff --git a/src-qt5/OS-detect.pri b/src-qt5/OS-detect.pri index 0865cdfe..5d8aadc4 100644 --- a/src-qt5/OS-detect.pri +++ b/src-qt5/OS-detect.pri @@ -59,6 +59,7 @@ isEmpty(OS){ OS=Linux LIBS += -L/usr/local/lib -L/usr/lib -L/lib + #Detect *which* distro this is exists(/bin/lsb_release){ LINUX_DISTRO = $$system(lsb_release -si) } else:exists(/usr/bin/lsb_release){ @@ -66,7 +67,10 @@ isEmpty(OS){ } else:exists(/etc/gentoo-release){ LINUX_DISTRO = Gentoo } - + #Apply any special rules for particular distros + equals(LINUX_DISTRO,"Fedora"){ + isEmpty(L_ETCDIR){ L_ETCDIR=/etc } + } }else{ OS="Unknown"; } -- cgit