summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>2001-06-07 01:15:32 +0000
committerwtc%netscape.com <devnull@localhost>2001-06-07 01:15:32 +0000
commit72ec574578708cca7300b3db9577aaaa08e2ff5f (patch)
tree2fe11b2aa4c0de6ce6f278f2d633858904497d5f
parent7c3bccee13a08104eaea20ba2fec7fbfee2e59ee (diff)
downloadnspr-hg-72ec574578708cca7300b3db9577aaaa08e2ff5f.tar.gz
Added comments to explain the -Wp,-P compiler option for gcc on IRIX.
-rwxr-xr-xconfigure2
-rw-r--r--configure.in7
2 files changed, 8 insertions, 1 deletions
diff --git a/configure b/configure
index 574ba480..ee3f32ec 100755
--- a/configure
+++ b/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
diff --git a/configure.in b/configure.in
index 1245c9b9..470257cc 100644
--- a/configure.in
+++ b/configure.in
@@ -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"