http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54030
Bug #: 54030
Summary: make install does not honor
--program-prefix/--program-suffix for 'gcc' (AVR
build)
Classification: Unclassified
Product: gcc
Version: 4.7.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: sylv...@chicoree.fr
While building 4.7.1 for target AVR, make install honors
--program-prefix/--program-suffix for all installed binaries except for 'gcc'.
This one is always installed as ''avr-gcc-4.7.1''
HOW TO REPRODUCE:
=================
I tested several combination of --progam-prefix/--program-suffix summerized
below. Each time ../gcc-${VERSION} is a clean gcc source directory. I build on
Debian Squeeze using debian-packaged gcc and tools.
I tested both with 4.7.1 and 4.6.3 with the same results:
(1) When I configure without program-suffix and -prefix, I indeed got gcc
installed as 'avr-gcc-4.7.1' -- but all other binaries lack the '-4.7.1' suffix
(including g++):
sh$ ../gcc-${VERSION}/configure --prefix=/tmp/gcc-${VERSION} \
--target=avr --enable-languages=c,c++
sh$ make -j9 && make install
sh$ ls /tmp/gcc-4.7.1/bin/
avr-c++ avr-g++ avr-gcc-4.7.1 avr-gcc-nm avr-gcov
avr-cpp avr-gcc avr-gcc-ar avr-gcc-ranlib
(2) When I only add the '-4.7.1' suffix, gcc is still installed as
'avr-gcc-4.7.1' and all other binaries have the correct suffix -- but no longer
their prefix:
sh$ ../gcc-${VERSION}/configure --prefix=/tmp/gcc-${VERSION} \
--target=avr --enable-languages=c,c++ \
--program-suffix=-4.7.1
sh$ make -j9 && make install
sh$ ls /tmp/gcc-4.7.1/bin/
avr-gcc-4.7.1 cpp-4.7.1 gcc-4.7.1 gcc-nm-4.7.1 gcov-4.7.1
c++-4.7.1 g++-4.7.1 gcc-ar-4.7.1 gcc-ranlib-4.7.1
(3) When I only add the 'avr-' prefix things are going just like in (1)
(without -prefix and -suffix): gcc is installed as 'avr-gcc-4.7.1' and all
other binaries only have the 'avr-' prefix:
sh$ ../gcc-${VERSION}/configure --prefix=/tmp/gcc-${VERSION} \
--target=avr --enable-languages=c,c++ \
--program-prefix=avr-
sh$ make -j9 && make install
sh$ ls /tmp/gcc-4.7.1/bin/
avr-c++ avr-g++ avr-gcc-4.7.1 avr-gcc-nm avr-gcov
avr-cpp avr-gcc avr-gcc-ar avr-gcc-ranlib
(4) When I both configure with prefix 'avr-' and suffix '-4.7.1', I got all my
binaries installed with the correct prefix and suffix -- except that gcc is
/missing/ !
sh$ ../gcc-${VERSION}/configure --prefix=/tmp/gcc-${VERSION} \
--target=avr --enable-languages=c,c++ \
--program-prefix=avr- \
--program-suffix=-4.7.1
sh$ make -j9 && make install
sh$ ls /tmp/gcc-4.7.1/bin/
avr-c++-4.7.1 avr-g++-4.7.1 avr-gcc-nm-4.7.1 avr-gcov-4.7.1
avr-cpp-4.7.1 avr-gcc-ar-4.7.1 avr-gcc-ranlib-4.7.1
(5) When I use a different suffix and no prefix, gcc still is installed as
''avr-gcc-4.7.1' whereas the other binaries are installed with the requested
suffix:
sh$ ../gcc-${VERSION}/configure --prefix=/tmp/gcc-${VERSION} \
--target=avr --enable-languages=c,c++ \
--program-suffix=-custom
sh$ make -j9 && make install
sh$ ls /tmp/gcc-4.7.1/bin/
avr-gcc-4.7.1 cpp-custom gcc-custom gcc-ranlib-custom g++-custom
c++-custom gcc-ar-custom gcc-nm-custom gcov-custom