[223] in Pthreads mailing list archive

home help back first fref pref prev next nref lref last post

pgcc -E and autoconf

daemon@ATHENA.MIT.EDU (Owen Rees)
Fri Dec 1 08:34:23 1995

To: pthreads@MIT.EDU
Date: Fri, 01 Dec 1995 11:43:17 +0000
From: Owen Rees <rtor@ansa.co.uk>

If you want to specify pgcc/pg++ as the compiler to build something 
that uses autoconf configuration, the "how to run the preprocessor" 
test will reject the option "pgcc -E" because of the warnings about 
unused libraries. This then means you get the wrong headers in *some* 
of the tests and you may end up with the wrong configuration.

The fix is simple suppress the libraries if the -E flag is used:
--- scripts/pgcc.sh.orig        Thu Aug 31 23:43:39 1995
+++ scripts/pgcc.sh     Thu Nov 30 15:09:10 1995
@@ -23,7 +23,7 @@
 for arg in "$@" ; do
     case $arg in
        -nostdinc)      include_dir= ;;
-       -nostdlib | -c) libs= ;;
+       -nostdlib | -c | -E)    libs= ;;
     esac
 done

Owen Rees
 <rtor@ansa.co.uk>, <URL:http://www.ansa.co.uk/Staff/rtor.html>
 Information about ANSA is at <URL:http://www.ansa.co.uk/>.



home help back first fref pref prev next nref lref last post