summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authoritojun <itojun@pkgsrc.org>2003-09-17 05:14:40 +0000
committeritojun <itojun@pkgsrc.org>2003-09-17 05:14:40 +0000
commit871cc4dcdb940f90cd3bde20a1086bf678eac51e (patch)
tree4791be509c5bf28d016ae1d63ba19c8955179a76 /mk
parent399f83c52684953c1f0a9bb47fc6e1d31bf8e921 (diff)
downloadpkgsrc-871cc4dcdb940f90cd3bde20a1086bf678eac51e.tar.gz
binary format detection for OpenBSD. Frederick Bruckman
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.prefs.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk
index 14449308aa8..d7567c555a4 100644
--- a/mk/bsd.prefs.mk
+++ b/mk/bsd.prefs.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.126 2003/09/16 08:09:04 grant Exp $
+# $NetBSD: bsd.prefs.mk,v 1.127 2003/09/17 05:14:40 itojun Exp $
#
# Make file, included to get the site preferences, if any. Should
# only be included by package Makefiles before any .if defined()
@@ -161,6 +161,14 @@ OBJECT_FMT?= a.out
. endif
.endif
+.if ${OPSYS} == "OpenBSD"
+. if defined(ELF_TOOLCHAIN) && ${ELF_TOOLCHAIN} == "yes"
+OBJECT_FMT?= ELF
+. else
+OBJECT_FMT?= a.out
+. endif
+.endif
+
# include the defaults file
.if exists(${.CURDIR}/../../mk/bsd.pkg.defaults.mk)
. include "${.CURDIR}/../../mk/bsd.pkg.defaults.mk"