tech-pkg archive

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

Re: (cross/h8300-elf-binutils) Re: broken packages for 2013q2



Attached patch works

( Changing -s to -sf is not really necessary, sorry.)
I will commit this. Thanks dholland@,
---
Makoto Fujiwara, 
Chiba, Japan, Narita Airport and Disneyland prefecture.

PATH differs between clang and gcc, add trick by looking for path-by-path
to adapt environment. Proposed by dholland@ thanks.
Confirmed following combinations so far.
  NetBSD/amd64 6.1      gcc-4.5.3
  NetBSD/amd64 6.99.21  clang version 3.2
  NetBSD/i386  5.2      gcc-4.1.3
  NetBSD/macppc 6.1     gcc-4.5.3
  DragonFly/i386 3.4.2  gcc-4.7.2

Index: cross/h8300-elf-binutils/Makefile
===================================================================
RCS file: /cvs/cvsroot/pkgsrc/cross/h8300-elf-binutils/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- cross/h8300-elf-binutils/Makefile   9 May 2013 13:47:25 -0000       1.2
+++ cross/h8300-elf-binutils/Makefile   16 Jun 2013 12:17:45 -0000
@@ -42,7 +43,14 @@
                ${LN} -s ${H8300_PREFIX}/bin/"$$f" \
                  ${DESTDIR}${PREFIX}/bin/"$$f" || exit 1; \
        done
-       ${MV} ${DESTDIR}${H8300_PREFIX}/lib/libiberty.a \
-             ${DESTDIR}${H8300_PREFIX}/lib/libiberty_binutils.a
+# copy libiberty.a under the different name from compiler
+# PATH differs between clang and gcc:
+       for d in ${MACHINE_ARCH}/libiberty.a libiberty.a; do \
+               if [ -f ${DESTDIR}${H8300_PREFIX}/lib/$$d ]; then \
+                       ${MV} ${DESTDIR}${H8300_PREFIX}/lib/$$d \
+                             
${DESTDIR}${H8300_PREFIX}/lib/libiberty_binutils.a; \
+               break; \
+               fi; \
+       done
 
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index