summaryrefslogtreecommitdiff
path: root/dos
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-03-03 20:18:10 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-03-03 20:18:10 -0800
commit03abbde81db7484ccdb4e1808881e1df20df2fb0 (patch)
tree6d9722ba6c8373122bb86c7562ac8cd5c6ed1598 /dos
parent763bb1f82a4519bdf240fd5d43f7e776c0d5206f (diff)
downloadsyslinux-03abbde81db7484ccdb4e1808881e1df20df2fb0.tar.gz
Prevent inclusion of system include files when inappropriate
Use "-nostdinc -iwithprefix include" to prevent the inclusion of system header files, but still permitting *compiler* header files.
Diffstat (limited to 'dos')
-rw-r--r--dos/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/dos/Makefile b/dos/Makefile
index 1bfc5135..ad202ee8 100644
--- a/dos/Makefile
+++ b/dos/Makefile
@@ -11,7 +11,8 @@ CC = gcc
LD = ld -m elf_i386
OBJCOPY = objcopy
OPTFLAGS = -g -Os -march=i386 -falign-functions=0 -falign-jumps=0 -falign-loops=0 -fomit-frame-pointer
-INCLUDES = -include code16.h -I. -I.. -I../libfat -I ../libinstaller
+INCLUDES = -include code16.h -nostdinc -iwithprefix include \
+ -I. -I.. -I../libfat -I ../libinstaller
CFLAGS = $(M32) -mregparm=3 -DREGPARM=3 -W -Wall -msoft-float $(OPTFLAGS) $(INCLUDES)
LDFLAGS = -T com16.ld
AR = ar