X-Git-Url: https://git.saurik.com/apple/boot.git/blobdiff_plain/57c72a9a9f2a263d364c2df1178760bd057c390f..bba600dda0ea8a76d875db7308f372bfc43f8506:/i386/boot1u/Makefile diff --git a/i386/boot1u/Makefile b/i386/boot1u/Makefile index 0f479ca..36fcd03 100644 --- a/i386/boot1u/Makefile +++ b/i386/boot1u/Makefile @@ -1,11 +1,11 @@ DIR = boot1u include ../MakePaths.dir -OPTIM = -Os +OPTIM = -Os -Oz CFLAGS = $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -Werror \ -fno-builtin -DSAIO_INTERNAL_USER -DBOOT1 -static \ -fomit-frame-pointer -mpreferred-stack-boundary=2 \ - -fno-align-functions + -fno-align-functions -mno-sse2 -mfpmath=387 DEFINES= CONFIG = hd SYMDIR = $(SYMROOT) @@ -19,7 +19,7 @@ else MKDIRS = /bin/mkdir -p endif AS = as -LD = ld +LD = gcc LIBS= -L$(SYMDIR) -lsa #LIBS= -L$(SYMDIR) @@ -71,7 +71,7 @@ boot1u0: boot1u0.s Makefile $(NASM) $(NASM) boot1u0.s -o $(SYMROOT)/$@ boot1u: $(SYMROOT)/machOconv boot1u0 $(OBJS) - $(LD) -static -preload -segaddr __TEXT $(BOOT1UADDR) -segalign 20 \ + $(LD) -arch i386 -fno-builtin -static -Wl,-preload -Wl,-segaddr,__TEXT,$(BOOT1UADDR) -nostdlib -Wl,-segalign,20 \ -o $(SYMROOT)/$(@F).sys $(filter %.o,$^) $(LIBS) -lcc_kext size $(SYMROOT)/$(@F).sys $(SYMROOT)/machOconv $(SYMROOT)/$(@F).sys $(SYMROOT)/$(@F).post