bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gcc -I List - Solaris 8 Intel Build


From: Mark D. Baushke
Subject: Re: gcc -I List - Solaris 8 Intel Build
Date: Fri, 11 Jun 2004 09:36:37 -0700

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Conrad T. Pino <Conrad@Pino.com> writes:

> $ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../diff -I../zlib  ...
> 
> Does the "-I." occur twice for any particular reason?

It would appear that you are doing your build in the same directory as
your sources. Not everyone does this.

If you were to make cvs with the following recipee:

   tar xzf cvs-1.12.9.tar.gz
   cd cvs-1.12.9
   mkdir obj.`uname -s`
   cd obj.`uname -s`
   ../configure
   make

(which many folks use to allow them to build multiple architecure
versions of cvs from the same set of sources) you would see

  ... gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -I../../lib -I../lib 
-I../../diff -I../../zlib ...

so that there are NOT two -I. switches based on the value of $(srcdir)

Further digging shows the src/Makefile.in contains:

COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
        $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)

as well as:

DEFAULT_INCLUDES =  -I. -I$(srcdir) -I$(top_builddir)

the -I. is needed when $(srcdir) != `pwd` to allow some derrived files
to be included in the directory as a general autoconf feature.

        Enjoy!
        -- Mark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQFAyd+U3x41pRYZE/gRAmYwAJ9MoYL8j4o7UrWLVBjtwUb3bjJJZACghJnf
kBmKgYxa09pYE0SVTL02IwE=
=uBrv
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]