summaryrefslogtreecommitdiff
path: root/mk/bsd.prefs.mk
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2009-12-13 08:19:45 +0000
committerobache <obache@pkgsrc.org>2009-12-13 08:19:45 +0000
commit440a7ccae830799fea2f6ef70dc825dba199a2d4 (patch)
tree8c3f1c79363afbc6c094b1ad7fa9ec49b63e8db1 /mk/bsd.prefs.mk
parent69d0858e02fe8d1ce32bc79615f1fd11f919ea04 (diff)
downloadpkgsrc-440a7ccae830799fea2f6ef70dc825dba199a2d4.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/bsd.prefs.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*)