diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-03-03 20:18:10 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-03-03 20:18:10 -0800 |
commit | 03abbde81db7484ccdb4e1808881e1df20df2fb0 (patch) | |
tree | 6d9722ba6c8373122bb86c7562ac8cd5c6ed1598 /com32/samples | |
parent | 763bb1f82a4519bdf240fd5d43f7e776c0d5206f (diff) | |
download | syslinux-elf-03abbde81db7484ccdb4e1808881e1df20df2fb0.tar.gz syslinux-elf-03abbde81db7484ccdb4e1808881e1df20df2fb0.tar.xz syslinux-elf-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/Makefile | 5 |
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 |