pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk binary format detection for OpenBSD. Frederick Bru...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c961b20fe430
branches:  trunk
changeset: 461509:c961b20fe430
user:      itojun <itojun%pkgsrc.org@localhost>
date:      Wed Sep 17 05:14:40 2003 +0000

description:
binary format detection for OpenBSD.  Frederick Bruckman

diffstat:

 mk/bsd.prefs.mk |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 1ee45b789596 -r c961b20fe430 mk/bsd.prefs.mk
--- a/mk/bsd.prefs.mk   Wed Sep 17 02:38:22 2003 +0000
+++ b/mk/bsd.prefs.mk   Wed Sep 17 05:14:40 2003 +0000
@@ -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 @@
 .  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"



Home | Main Index | Thread Index | Old Index