Remove -m32 flag from native gcc compiler

But check that mkfs.c is building with LP64
This commit is contained in:
Frans Kaashoek 2012-09-07 17:39:04 -04:00
parent 2ae8392a5c
commit cf57e525c1
2 changed files with 5 additions and 1 deletions

View file

@ -146,7 +146,7 @@ _forktest: forktest.o $(ULIB)
$(OBJDUMP) -S _forktest > forktest.asm
mkfs: mkfs.c fs.h
gcc -m32 -Werror -Wall -o mkfs mkfs.c
gcc -Werror -Wall -o mkfs mkfs.c
UPROGS=\
_cat\

4
mkfs.c
View file

@ -11,6 +11,10 @@
#include "stat.h"
#include "param.h"
#ifndef _LP64
#error "Integers are not 32 bits"
#endif
int nblocks = 985;
int nlog = LOGSIZE;
int ninodes = 200;