This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
Re: make install problems
>>>>> Levente Farkas writes:
> what was the spec file ? v3 can be build only with gcc.
I don't understand your question. This is with my own spec file and I
do a complete build of the whole of GCC.
> and the include file goes to somewhere under /usr/lib/gcc-lib/...
With v2 you could:
../configure --enable-threads=posix \
--enable-shared \
--prefix=/usr --with-local-prefix=/usr/local \
--with-gxx-include-dir=/usr/include/g++ --enable-nls \
And then install everything into RPM_BUILD_ROOT as explained in my
email. This doesn't work anymore with v3.
I'll consider removing the --with-gxx-include-dir anyway,
Andreas
> search the list for the correct path.
> Andreas Jaeger wrote:
>>
>> 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
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj