This should fix building on FreeBSD

This commit is contained in:
nelhage 2007-09-19 23:49:52 +00:00
parent 6197c04208
commit d7a90d3b5c

View file

@ -39,7 +39,8 @@ OBJDUMP = $(TOOLPREFIX)objdump
CFLAGS = -fno-builtin -O2 -Wall -MD -ggdb -m32 CFLAGS = -fno-builtin -O2 -Wall -MD -ggdb -m32
CFLAGS += $(shell $(CC) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1 && echo -fno-stack-protector) CFLAGS += $(shell $(CC) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1 && echo -fno-stack-protector)
ASFLAGS = -m32 ASFLAGS = -m32
LDFLAGS = -m elf_i386 # FreeBSD ld wants ``elf_i386_fbsd''
LDFLAGS += -m $(shell $(LD) -V | grep elf_i386 2>/dev/null)
xv6.img: bootblock kernel fs.img xv6.img: bootblock kernel fs.img
dd if=/dev/zero of=xv6.img count=10000 dd if=/dev/zero of=xv6.img count=10000