summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2011-08-09 16:09:15 -0400
committerFrans Kaashoek <[email protected]>2011-08-09 16:09:15 -0400
commitb23d8329e7df6cf47b7d20fb19664496b4f29ca4 (patch)
tree0c96996433fc965a60133bf4e9341fcfb6b51e26 /Makefile
parenta56c8d609b24e4c1c3a8a5bacdced6ae53376ee2 (diff)
downloadxv6-labs-b23d8329e7df6cf47b7d20fb19664496b4f29ca4.tar.gz
xv6-labs-b23d8329e7df6cf47b7d20fb19664496b4f29ca4.tar.bz2
xv6-labs-b23d8329e7df6cf47b7d20fb19664496b4f29ca4.zip
Allow gas to use / as divide (instead of comment)
Maybe not necessary, but don't want to waste time figuring this out again
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d52c976..7fbd99e 100644
--- a/Makefile
+++ b/Makefile
@@ -74,7 +74,7 @@ OBJCOPY = $(TOOLPREFIX)objcopy
OBJDUMP = $(TOOLPREFIX)objdump
CFLAGS = -fno-pic -static -fno-builtin -fno-strict-aliasing -O2 -Wall -MD -ggdb -m32 -Werror -fno-omit-frame-pointer
CFLAGS += $(shell $(CC) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1 && echo -fno-stack-protector)
-ASFLAGS = -m32 -gdwarf-2
+ASFLAGS = -m32 -gdwarf-2 -Wa,-divide
# FreeBSD ld wants ``elf_i386_fbsd''
LDFLAGS += -m $(shell $(LD) -V | grep elf_i386 2>/dev/null)