Subject: port-i386/33550: bootxx_cd9660 bsd.own.mk is too late in Makefile
To: None <port-i386-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <scotte@warped.com>
List: netbsd-bugs
Date: 05/24/2006 21:50:00
>Number: 33550
>Category: port-i386
>Synopsis: bootxx_cd9660/Makefile includes bsd.own.mk after setting/unsetting variables
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: port-i386-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed May 24 21:50:00 +0000 2006
>Originator: Scott Ellis
>Release: NetBSD 3.99.17
>Organization:
>Environment:
System: NetBSD intrepid 3.99.17 NetBSD 3.99.17 (INTREPID.AMD64) #0: Fri Apr 7 21:10:05 PDT 2006 scotte@intrepid:/misc/netbsd_src/src/obj.amd64/misc/netbsd_src/src/sys/arch/amd64/compile/INTREPID.AMD64 amd64
Architecture: x86_64
Machine: amd64
>Description:
/usr/src/sys/arch/i386/stand/bootxx/bootxx_cd9660/Makefile has:
# $NetBSD: Makefile,v 1.5 2006/05/13 04:12:33 lukem Exp $
S= ${.CURDIR}/../../../../..
NOMAN= # defined
STRIPFLAG= # nothing
LIBCRT0= # nothing
LIBCRTBEGIN= # nothing
LIBCRTEND= # nothing
LIBC= # nothing
PRIMARY_LOAD_ADDRESS=0x600
SECONDARY_LOAD_ADDRESS=0x10000
.include <bsd.own.mk>
[snip]
Unfortunately, having something like STRIPFLAG=-s in /etc/mk.conf causes the
build to fail, since although the Makefile unsets it, it's re-set by the
inclusion of bsd.own.mk.
>How-To-Repeat:
Add STRIPFLAG=-s to /etc/mk.conf, build, enjoy (or not) as it errors out
since the bootxx_cd9660 binary isn't a format that 'strip' understands.
>Fix:
Move the include of bsd.own.mk above the redefinitions at the top of the
Makefile.
>Unformatted: