openbsd-ports/devel/msp430/gcc/patches/patch-libgcc_Makefile_in
jasper 5a71f2c6ae Import mspgcc4, the toolchain for MSP430 MCUs. based on gnu gcc, binutils, gdb
with additional patches for msp430 support.

One will need an upcoming umodem.c commit by jakemsr@, and an upcoming
mspdebug port in order to actually program the devices though.

feedback/ok aja@
2010-12-01 09:06:52 +00:00

39 lines
1.4 KiB
Plaintext

$OpenBSD: patch-libgcc_Makefile_in,v 1.1.1.1 2010/12/01 09:06:52 jasper Exp $
Using $(INSTALL_DATA) and chmod generates errors as the operation
is not permitted. So use plain copy mode and chown/chgrp
in the post-install target.
--- libgcc/Makefile.in.orig Thu Oct 14 11:39:34 2010
+++ libgcc/Makefile.in Thu Oct 14 11:53:23 2010
@@ -890,7 +890,7 @@ gcc-extra-parts:
parts="$(GCC_EXTRA_PARTS)"; \
for file in $$parts; do \
rm -f $(gcc_objdir)$(MULTISUBDIR)/$$file; \
- $(INSTALL_DATA) $$file $(gcc_objdir)$(MULTISUBDIR)/; \
+ install -c $$file $(gcc_objdir)$(MULTISUBDIR)/; \
done
all: $(extra-parts)
@@ -935,17 +935,15 @@ install-shared:
install-leaf: $(install-shared) $(install-libunwind)
$(mkinstalldirs) $(DESTDIR)$(inst_libdir)
- $(INSTALL_DATA) libgcc.a $(DESTDIR)$(inst_libdir)/
- chmod 644 $(DESTDIR)$(inst_libdir)/libgcc.a
+ install -c libgcc.a $(DESTDIR)$(inst_libdir)/
$(RANLIB) $(DESTDIR)$(inst_libdir)/libgcc.a
- $(INSTALL_DATA) libgcov.a $(DESTDIR)$(inst_libdir)/
- chmod 644 $(DESTDIR)$(inst_libdir)/libgcov.a
+ install -c libgcov.a $(DESTDIR)$(inst_libdir)/
$(RANLIB) $(DESTDIR)$(inst_libdir)/libgcov.a
parts="$(INSTALL_PARTS)"; \
for file in $$parts; do \
rm -f $(DESTDIR)$(inst_libdir)/$$file; \
- $(INSTALL_DATA) $$file $(DESTDIR)$(inst_libdir)/; \
+ install -c $$file $(DESTDIR)$(inst_libdir)/; \
done
install: install-leaf