This is the mail archive of the libstdc++@sources.redhat.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

make install problems



For building with RPM, I install everything to a separate directory to
not destroy my system.  With libstdc++-V2 I could use the following
make command from the toplevel gcc build directory to do so:

make install prefix=$RPM_BUILD_ROOT%{_prefix} \
	mandir=$RPM_BUILD_ROOT%{_mandir} \
	infodir=$RPM_BUILD_ROOT%{_infodir} \
	gxx_include_dir=$RPM_BUILD_ROOT%{_prefix}/include/g++


But this doesn't work with V3 anymore.  I tried already to add these
but that didn't help either:
	includedir=$RPM_BUILD_ROOT%{_prefix}/include/ \
	glibcppinstalldir=$RPM_BUILD_ROOT%{_prefix}/include/


Running e.g.:
gee:/usr/src/packages/BUILD/gcc/obj/libstdc++-v3:[130]# make install includedir=/tmp/test/usr/include gxx_include_dir=/tmp/test/usr/include/g++ glibcppinstalldir=tmp/test/usr/include/g++ 

Still shows:
 /usr/bin/install -c -m 644 ../../../../libstdc++-v3/libsupc++/cxxabi.h /usr/include/g++/cxxabi.h
 /usr/bin/install -c -m 644 ../../../../libstdc++-v3/libsupc++/exception /usr/include/g++/exception
 /usr/bin/install -c -m 644 ../../../../libstdc++-v3/libsupc++/new /usr/include/g++/new
 /usr/bin/install -c -m 644 ../../../../libstdc++-v3/libsupc++/new.h /usr/include/g++/new.h
 /usr/bin/install -c -m 644 ../../../../libstdc++-v3/libsupc++/typeinfo /usr/include/g++/typeinfo

But the files should go into /tmp/test/... :-(

Any idea how to fix this?  I'm using  Linux on i486 with latest tools
(glibc 2.2, binutils 2.10, make 3.79.1).

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]