gcc-for-nvcc-cross-canadian: fix install name for sdk build

Fix name conflicts for the cross-canadian gcc and g++ compilers by
adding the version number suffix to the binary name.

Signed-off-by: Kurt Kiefer <kekiefer@gmail.com>
Signed-off-by: Matt Madison <matt@madison.systems>
This commit is contained in:
Matt Madison
2023-09-02 04:26:13 -07:00
parent 92d6da7c14
commit a2c46d742c

View File

@@ -152,7 +152,7 @@ do_install () {
do do
d=${D}${bindir}/../${TARGET_ARCH}$v-$i d=${D}${bindir}/../${TARGET_ARCH}$v-$i
install -d $d install -d $d
for j in ${TARGET_PREFIX}gcc${EXEEXT} ${TARGET_PREFIX}g++${EXEEXT} for j in ${TARGET_PREFIX}gcc-${BINV}${EXEEXT} ${TARGET_PREFIX}g++-${BINV}${EXEEXT}
do do
p=${TARGET_ARCH}$v-$i-`echo $j | sed -e s,${TARGET_PREFIX},,` p=${TARGET_ARCH}$v-$i-`echo $j | sed -e s,${TARGET_PREFIX},,`
case $i in case $i in