Added comments to explain the -Wp,-P compiler option for gcc on IRIX.

This commit is contained in:
wtc%netscape.com 2001-06-07 01:15:32 +00:00
Родитель 2d14054ab4
Коммит ac2fe459f7
2 изменённых файлов: 8 добавлений и 1 удалений

2
nsprpub/configure поставляемый
Просмотреть файл

@ -3385,7 +3385,7 @@ EOF
;;
esac
if test "$GNU_CC"; then
AS='$(CC) -Wp,-P -x assembler-with-cpp -D_ASM -mips2 $(INCLUDES)'
AS='$(CC) -Wp,-P -x assembler-with-cpp -D_ASM -mips2 $(INCLUDES)'
CFLAGS="$CFLAGS -Wall -Wno-format"
_OPTIMIZE_FLAGS="-O6"
else

Просмотреть файл

@ -954,6 +954,13 @@ case "$target" in
;;
esac
if test "$GNU_CC"; then
dnl
dnl If we are using gcc with native binutils, we need to
dnl suppress the
dnl #lineno "filename" num num
dnl lines, which confuse IRIX native as. Add -Wp,-P to the
dnl gcc command line, which passes -P to the preprocessor.
dnl
AS='$(CC) -Wp,-P -x assembler-with-cpp -D_ASM -mips2 $(INCLUDES)'
CFLAGS="$CFLAGS -Wall -Wno-format"
_OPTIMIZE_FLAGS="-O6"