1Upstream-Status: Inappropriate  [OE-Specific]
2
3Make install tries to perform install for all variants, but some of them use the same
4name for crt0 in specific, so performing all of them results in an error during
5do_install, we simply modify the name of the objects so the installation can proceed
6and leave it to the user to select which object files to use.
7
8
901/2023: Rebased for libgloss 4.3.0
10
11Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
12
13
14Index: git/libgloss/rs6000/Makefile.in
15===================================================================
16--- git.orig/libgloss/rs6000/Makefile.in
17+++ git/libgloss/rs6000/Makefile.in
18@@ -362,7 +362,7 @@ install-sim:
19
20 install-mvme:
21 	${mkinstalldirs} ${DESTDIR}${tooldir}/lib${MULTISUBDIR}
22-	set -e; for x in ${MVME_CRT0} ${MVME_BSP} ${MVME_SCRIPTS}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done
23+	set -e; for x in ${MVME_CRT0} ${MVME_BSP} ${MVME_SCRIPTS}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/mvme-$$x; done
24
25 install-solaris:
26 	${mkinstalldirs} ${DESTDIR}${tooldir}/lib${MULTISUBDIR}
27@@ -374,17 +374,17 @@ install-linux:
28
29 install-yellowknife:
30 	${mkinstalldirs} ${DESTDIR}${tooldir}/lib${MULTISUBDIR}
31-	set -e; for x in ${YELLOWKNIFE_CRT0} ${YELLOWKNIFE_BSP}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done
32+	set -e; for x in ${YELLOWKNIFE_CRT0} ${YELLOWKNIFE_BSP}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/yellowknife-$$x; done
33 	set -e; for x in ${YELLOWKNIFE_SCRIPTS}; do ${INSTALL_DATA} $(srcdir)/$$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done
34
35 install-ads:
36 	${mkinstalldirs} ${DESTDIR}${tooldir}/lib${MULTISUBDIR}
37-	set -e; for x in ${ADS_CRT0} ${ADS_BSP}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done
38+	set -e; for x in ${ADS_CRT0} ${ADS_BSP}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/ads-$$x; done
39 	set -e; for x in ${ADS_SCRIPTS}; do ${INSTALL_DATA} $(srcdir)/$$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done
40
41 install-mbx:
42 	${mkinstalldirs} ${DESTDIR}${tooldir}/lib${MULTISUBDIR}
43-	set -e; for x in ${MBX_CRT0} ${MBX_BSP}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done
44+	set -e; for x in ${MBX_CRT0} ${MBX_BSP}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/mbx-$$x; done
45 	set -e; for x in ${MBX_SCRIPTS} ${MBX_SPECS}; do ${INSTALL_DATA} $(srcdir)/$$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done
46
47 install-xil:
48