summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorobache <obache>2009-12-13 08:19:45 +0000
committerobache <obache>2009-12-13 08:19:45 +0000
commit4c7fed0b21fd63552274d4c8e520c2fc4b7df51c (patch)
tree8c3f1c79363afbc6c094b1ad7fa9ec49b63e8db1 /mk
parent194e61ec0c358035ac9031de4c4cf94e10802cfe (diff)
downloadpkgsrc-4c7fed0b21fd63552274d4c8e520c2fc4b7df51c.tar.gz
Interix>=5.2 have libc.so.5.2, but no higer revision exists.
So gave up to detect OS_VERSION with shlib version if libc.so.5.2 exists.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.prefs.mk14
1 files changed, 9 insertions, 5 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk
index 34d2ca3aed2..a294e3f00ba 100644
--- a/mk/bsd.prefs.mk
+++ b/mk/bsd.prefs.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.300 2009/09/24 17:24:13 tron Exp $
+# $NetBSD: bsd.prefs.mk,v 1.301 2009/12/13 08:19:45 obache Exp $
#
# This file includes the mk.conf file, which contains the user settings.
#
@@ -176,14 +176,18 @@ LOWER_VENDOR?= unknown
.elif ${OPSYS} == "Interix"
LOWER_OPSYS?= interix
-LOWER_OPSYS_VERSUFFIX?= 3
LOWER_VENDOR?= pc
-. if exists(/usr/lib/libc.so.3.5)
+. if exists(/usr/lib/libc.so.5.2) || exists(/usr/lib/x86/libc.so.5.2)
+LOWER_OPSYS_VERSUFFIX= ${LOWER_OS_VERSION:C/([0-9]*).*/\1/}
+. else
+LOWER_OPSYS_VERSUFFIX?= 3
+. if exists(/usr/lib/libc.so.3.5)
OS_VERSION= 3.5
-. elif exists(/usr/lib/libc.so.3.1)
+. elif exists(/usr/lib/libc.so.3.1)
OS_VERSION= 3.1
-. else
+. else
OS_VERSION= 3.0
+. endif
. endif
.elif !empty(OPSYS:MIRIX*)