GCC 4.4.3 Build - Customize Path Variables

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

 



Hi,

I'm newbie here. I build an GCC from source code using:
1)
../gcc-4.4.3/configure --prefix=/opt/gcc443 --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,fortran --disable-libgcj --with-mpfr=/exports/install/gcc443/mpfr-3.0.1/result/ --with-ppl=/exports/install/gcc443/ppl-0.11.2/result/ --with-cloog=/exports/install/gcc443/cloog-ppl-0.15.11/result/ --with-tune=generic --with-arch_32=i586 --build=x86_64-redhat-linux6E
2) make
3) sudo make install

I'running

CENTOS5
Linux i83pdc 2.6.18-194.17.1.el5 #1 SMP Wed Sep 29 12:50:31 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

The new gcc gives me:

gcc -v
Es werden eingebaute Spezifikationen verwendet.
Ziel: x86_64-redhat-linux6E
Konfiguriert mit: ../gcc-4.4.3/configure --prefix=/opt/gcc443 --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,fortran --disable-libgcj --with-mpfr=/exports/install/gcc443/mpfr-3.0.1/result/ --with-ppl=/exports/install/gcc443/ppl-0.11.2/result/ --with-cloog=/exports/install/gcc443/cloog-ppl-0.15.11/result/ --with-tune=generic --with-arch_32=i586 --build=x86_64-redhat-linux6E
Thread-Modell: posix
gcc-Version 4.4.3 (GCC)

gcc --print-search-dir
installiere: /opt/gcc443/lib/gcc/x86_64-redhat-linux6E/4.4.3/
Programme: =/opt/gcc443/libexec/gcc/x86_64-redhat-linux6E/4.4.3/:/opt/gcc443/libexec/gcc/x86_64-redhat-linux6E/4.4.3/:/opt/gcc443/libexec/gcc/x86_64-redhat-linux6E/:/opt/gcc443/lib/gcc/x86_64-redhat-linux6E/4.4.3/:/opt/gcc443/lib/gcc/x86_64-redhat-linux6E/:/usr/libexec/gcc/x86_64-redhat-linux6E/4.4.3/:/usr/libexec/gcc/x86_64-redhat-linux6E/:/usr/lib/gcc/x86_64-redhat-linux6E/4.4.3/:/usr/lib/gcc/x86_64-redhat-linux6E/:/opt/gcc443/lib/gcc/x86_64-redhat-linux6E/4.4.3/../../../../x86_64-redhat-linux6E/bin/x86_64-redhat-linux6E/4.4.3/:/opt/gcc443/lib/gcc/x86_64-redhat-linux6E/4.4.3/../../../../x86_64-redhat-linux6E/bin/
Bibliotheken: =/Software/si2org/oa/lib/linux_rhel40_gcc44x_64/opt/x86_64-redhat-linux6E/4.4.3/:/Software/si2org/oa/lib/linux_rhel40_gcc44x_64/opt/../lib64/:/opt/gcc443/lib/gcc/x86_64-redhat-linux6E/4.4.3/:/usr/lib/gcc/x86_64-redhat-linux6E/4.4.3/:/opt/gcc443/lib/gcc/x86_64-redhat-linux6E/4.4.3/../../../../x86_64-redhat-linux6E/lib/x86_64-redhat-linux6E/4.4.3/:/opt/gcc443/lib/gcc/x86_64-redhat-linux6E/4.4.3/../../../../x86_64-redhat-linux6E/lib/../lib64/:/opt/gcc443/lib/gcc/x86_64-redhat-linux6E/4.4.3/../../../x86_64-redhat-linux6E/4.4.3/:/opt/gcc443/lib/gcc/x86_64-redhat-linux6E/4.4.3/../../../../lib64/:/lib/x86_64-redhat-linux6E/4.4.3/:/lib/../lib64/:/usr/lib/x86_64-redhat-linux6E/4.4.3/:/usr/lib/../lib64/:/Software/si2org/oa/lib/linux_rhel40_gcc44x_64/opt/:/opt/gcc443/lib/gcc/x86_64-redhat-linux6E/4.4.3/../../../../x86_64-redhat-linux6E/lib/:/opt/gcc443/lib/gcc/x86_64-redhat-linux6E/4.4.3/../../../:/lib/:/usr/lib/

gcc compiling ist possible and the resulting programs have correct links.

###############################################################
Now finally there comes the questions :-)
1) At which stage of build I can modify paths which will be build in?
2) Why do some pathes look like this 1/2/3/../../../ ? (above)
3) How can i kick out invalid pathes?
4) Is it harmful to reorder the lists?
5) As I'm not familiar with Linking/Headers/dynamic & static libraries - Is there a good help which gives overview?
6) I want "only" to clean the lib and program path variable to the valid ones. Is there an easy option?

Thank your help.

Regards Eberhards
-- 
NEU: FreePhone - kostenlos mobil telefonieren und surfen!			
Jetzt informieren: http://www.gmx.net/de/go/freephone


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux