diff options
author | ru <ru@FreeBSD.org> | 2004-02-09 14:11:58 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2004-02-09 14:11:58 +0000 |
commit | 5d659b9c9153cac8ef26ac894913d84a6772d779 (patch) | |
tree | 8ce2d80f6b9077e83a792c0cc593b1328ab46eb6 /sys/boot/i386/Makefile.inc | |
parent | 951150d25a152b9b7302661fb693e51d0ffe17f1 (diff) | |
download | FreeBSD-src-5d659b9c9153cac8ef26ac894913d84a6772d779.zip FreeBSD-src-5d659b9c9153cac8ef26ac894913d84a6772d779.tar.gz |
- Factor out -nostdlib to an upper level Makefile.inc.
- Now that bsd.prog.mk deals with programs linked with -nostdlib
better, and has a notion of an "internal" program, use PROG
where possible. This has a good impact on the contents of
.depend files and causes programs to be linked with cc(1).
XXX: boot2 couldn't be converted as it's actually two programs.
Tested on: i386, amd64
Diffstat (limited to 'sys/boot/i386/Makefile.inc')
-rw-r--r-- | sys/boot/i386/Makefile.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/boot/i386/Makefile.inc b/sys/boot/i386/Makefile.inc index 6bd4f31..d7e4d0d 100644 --- a/sys/boot/i386/Makefile.inc +++ b/sys/boot/i386/Makefile.inc @@ -6,6 +6,7 @@ BINDIR?= /boot LOADER_ADDRESS?=0x200000 CFLAGS+= -ffreestanding -mpreferred-stack-boundary=2 +LDFLAGS+= -nostdlib .if ${MACHINE_ARCH} == "amd64" CFLAGS+= -m32 |