pkgsrc/lang/gcc/patches/patch-ac

26 lines
940 B
Text

$NetBSD: patch-ac,v 1.6 2011/07/15 08:47:22 asau Exp $
--- libiberty/Makefile.in.orig 2011-07-12 16:13:20.000000000 +0400
+++ libiberty/Makefile.in 2011-07-12 16:41:39.000000000 +0400
@@ -57,7 +57,7 @@
LIBCFLAGS = $(CFLAGS)
RANLIB = @RANLIB@
-PICFLAG =
+PICFLAG = -fPIC -DPIC
MAKEOVERRIDES =
@@ -155,9 +155,9 @@
install: install_to_$(INSTALL_DEST) install-subdir
install_to_libdir: all
- $(INSTALL_DATA) $(TARGETLIB) $(libdir)$(MULTISUBDIR)/$(TARGETLIB)n
- ( cd $(libdir)$(MULTISUBDIR) ; $(RANLIB) $(TARGETLIB)n )
- mv -f $(libdir)$(MULTISUBDIR)/$(TARGETLIB)n $(libdir)$(MULTISUBDIR)/$(TARGETLIB)
+ $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)n
+ ( cd $(DESTDIR)$(libdir)$(MULTISUBDIR) ; $(RANLIB) $(TARGETLIB)n )
+ mv -f $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)n $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)
@$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
install_to_tooldir: all