aboutsummaryrefslogtreecommitdiffstats
path: root/com32/samples
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 /com32/samples
parent763bb1f82a4519bdf240fd5d43f7e776c0d5206f (diff)
downloadsyslinux.git-03abbde81db7484ccdb4e1808881e1df20df2fb0.tar.gz
syslinux.git-03abbde81db7484ccdb4e1808881e1df20df2fb0.tar.xz
syslinux.git-03abbde81db7484ccdb4e1808881e1df20df2fb0.zip
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 'com32/samples')
-rw-r--r--com32/samples/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/com32/samples/Makefile b/com32/samples/Makefile
index f17911d7..177f351e 100644
--- a/com32/samples/Makefile
+++ b/com32/samples/Makefile
@@ -28,8 +28,9 @@ NASM = nasm
NASMOPT = -O9999
RANLIB = ranlib
CFLAGS = $(M32) -mregparm=3 -DREGPARM=3 -W -Wall -march=i386 -Os \
- -fomit-frame-pointer -I../libutil/include -I../include \
- -D__COM32__ \
+ -fomit-frame-pointer -D__COM32__ \
+ -nostdinc -iwithprefix include \
+ -I../libutil/include -I../include \
-Wp,-MT,$@,-MD,$(dir $@).$(notdir $@).d
LNXCFLAGS = -W -Wall -O -g -I../libutil/include
LNXSFLAGS = -g