aboutsummaryrefslogtreecommitdiffstats
path: root/dos/Makefile
diff options
context:
space:
mode:
authorhpa <hpa>2004-12-19 00:25:14 +0000
committerhpa <hpa>2004-12-19 00:25:14 +0000
commitb544013ca57aea35b878e380de19c22ac1abb40e (patch)
treecf3f7ccadc1bddbb73c778441a8bdf5020ff6159 /dos/Makefile
parentfc50ce2dd9f4de675605169495a980426fb97181 (diff)
downloadsyslinux.git-b544013ca57aea35b878e380de19c22ac1abb40e.tar.gz
syslinux.git-b544013ca57aea35b878e380de19c22ac1abb40e.tar.xz
syslinux.git-b544013ca57aea35b878e380de19c22ac1abb40e.zip
Beef up the sanity checking of the boot sector. For really better checking
we should be checking the FAT for the media signature, too.
Diffstat (limited to 'dos/Makefile')
-rw-r--r--dos/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/dos/Makefile b/dos/Makefile
index 5b58af0a..c423ded7 100644
--- a/dos/Makefile
+++ b/dos/Makefile
@@ -7,6 +7,7 @@ CFLAGS = -W -Wall -ffreestanding -msoft-float $(OPTFLAGS) $(INCLUDES)
LDFLAGS = -T com16.ld
AR = ar
RANLIB = ranlib
+LIBGCC := $(shell $(CC) --print-libgcc)
SRCS = syslinux.c \
../syslxmod.c ../bootsect_bin.c ../ldlinux_bin.c \
@@ -33,7 +34,7 @@ spotless: clean
installer: syslinux.com
syslinux.elf: $(OBJS) libcom.a
- $(LD) $(LDFLAGS) -o $@ $^
+ $(LD) $(LDFLAGS) -o $@ $^ $(LIBGCC)
libcom.a: $(LIBOBJS)
-rm -f $@