This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Installation using relative (instead of hard-coded) paths
- From: Srinivas Mantripragada <smprag at yahoo dot com>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 30 Jan 2002 18:10:10 -0800 (PST)
- Subject: Re: Installation using relative (instead of hard-coded) paths
Hi,
I am using GCC 3.0 and am still not able
to get what I want. I was hoping that GCC use
relative (and not absolute) offsets when building
the respective components. The intent, is that
everything under $prefix can then work as a standalone
image, eg. everything under $prefix can be
tarred/untarred on different machines and expect
to work, or just be kept in a CVS tree. A simple
environment variable pointing to the bin directory
would then work like magic..
Can this be done using GCC 3.0?
any help will be greatly appreciated.
I am using the config variables, as described below.
thx,
-Srinivas
--
GNU_DIR=`pwd`
cd $GNU_DIR
prefix=$GNU_DIR/usr
#prefix=../usr
i=$prefix/bin
HEADERS=$GNU_DIR/../newlib-1.8.2/newlib/libc/include
LIBS=$GNU_DIR
#
# Configure, build and install binutils
#
if [ "x$2" = "xbinutils" ]
then
mkdir -p build-binutils
cd build-binutils
../../binutils-2.11.2/configure --host=$host
--target=$target --prefix=$prefix -v
make all install
cd ..
exit 0
fi
#
# Configure, build and install gcc
#
if [ "x$2" = "xgcc" ]
then
mkdir -p build-gcc
cd build-gcc
../../gcc-3.0.3/configure --host=$host
--target=$target --prefix=$prefix -v --with-gnu-as
--with-gnu-ld
make all install
cd ..
exit 0
fi
--- Alexandre Oliva <aoliva@redhat.com> wrote:
> On May 22, 2001, Srinivas Mantripragada
> <smprag@yahoo.com> wrote:
>
> > Thanx for the response. Will the regular
> > "prefix=../.."
> > mechanism then take care of this on GCC 3.0?
>
> No. prefix should never be a relative directory.
> Specify whatever
> you want as prefix and exec_prefix; GCC will still
> be able find its
> auxiliary programs, headers, object-files and
> libraries.
>
> > Has GCC 3.0 been officially released
>
> Not yet.
>
> --
> Alexandre Oliva Enjoy Guarana', see
> http://www.ic.unicamp.br/~oliva/
> Red Hat GCC Developer
> aoliva@{cygnus.com, redhat.com}
> CS PhD student at IC-Unicamp
> oliva@{lsd.ic.unicamp.br, gnu.org}
> Free Software Evangelist *Please* write to
> mailing lists, not to me
__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com