Remove -m32 flag from native gcc compiler
But check that mkfs.c is building with LP64
This commit is contained in:
parent
2ae8392a5c
commit
cf57e525c1
2 changed files with 5 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -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
4
mkfs.c
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue