Subject: Re: OBJECT_FMT= a.out but should be ELF
To: Jeremy C. Reed <reed@reedmedia.net>
From: grant beattie <grant@netbsd.org>
List: tech-pkg
Date: 01/14/2003 10:52:45
On Mon, Jan 13, 2003 at 03:30:39PM -0800, Jeremy C. Reed wrote:
> Building qt3-libs, I received note that my jpeg was a.out but should be
> ELF. Then libtool-base (which was installed Dec. 3), then x11-links ...
>
> I saw that every /var/db/pkg/*/+BUILD_INFO file had
> OBJECT_FMT= a.out
>
> This is under Linux (using pkgsrc).
bsd.own.mk needs to be taught about Linux (and other platforms), but
for now, try this brutal patch:
Index: bsd.prefs.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/bsd.prefs.mk,v
retrieving revision 1.101
diff -u -r1.101 bsd.prefs.mk
--- bsd.prefs.mk 2003/01/12 22:36:14 1.101
+++ bsd.prefs.mk 2003/01/13 23:50:07
@@ -138,6 +138,8 @@
# Set this before <bsd.own.mk> does, since it doesn't know about Darwin
.if ${OPSYS} == "Darwin"
OBJECT_FMT?= Mach-O
+.else if ${OPSYS} == "Linux"
+OBJECT_FMT?= ELF
.endif
.include <bsd.own.mk>