Subject: Re: pkg_install/libnbcompat on OpenBSD
To: None <fredb@immanent.net>
From: Jun-ichiro itojun Hagino <itojun@itojun.org>
List: tech-pkg
Date: 09/16/2003 13:54:31
> > i386 was a.out until 3.3. starting 3.4 it is ELF.
> So it's complicated. I don't suppose there's some equivalent to
> OBJECT_FMT defined in "/usr/share/mk" on OpenBSD? That would make
> things easy. Otherwise, it looks like there needs to be a detailed
> clause in <bsd.prefs.mk> spelling out the variations based on
> OS_VERSION and MACHINE_ARCH (for ${OPSYS} == "OpenBSD").
>
> OBJECT_FMT doesn't do much, by the way. It leads to running
> ${LDCONFIG} if the platform is a.out, and it leads to warnings from
> "pkg_add" when you try install an a.out package on an ELF platform.
bsd.own.mk has it:
itojun
# Set toolchain to be able to know differences.
.if (${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "powerpc" || \
${MACHINE_ARCH} == "hppa" || ${MACHINE_ARCH} == "sparc64" || \
${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "i386")
ELF_TOOLCHAIN?= yes
.else
ELF_TOOLCHAIN?= no
.endif