Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / lang / gcc / patches / patch-ab
blobd217a57a4660717a5754a391d128cf50cbc2d6e8
1 $NetBSD: patch-ab,v 1.7 2002/10/05 20:54:53 dmcmahill Exp $
3 Enable building the shared libstdc++
5 also make the sersion number the same as the one we ship with netbsd-1.6 as
6 we use the same sources.
8 --- libstdc++/Makefile.in.orig  2011-07-12 16:44:41.000000000 +0400
9 +++ libstdc++/Makefile.in       2011-07-12 16:56:07.000000000 +0400
10 @@ -14,7 +14,7 @@
11  # along with this library; see the file COPYING.  If not, write to the Free
12  # Software Foundation, 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
14 -VERSION = 2.10.0nb1
15 +VERSION = 4.0
16  INTERFACE = 3
18  gxx_include_dir=${includedir}/g++
19 @@ -43,7 +43,7 @@
21  STAMP   = bigstmp
23 -LIBS    = $(ARLIB) $(ARLINK)
24 +LIBS    = $(ARLIB) $(ARLINK) $(SHLIB) $(SHLINK)
26  #### package, host, target, and site dependent Makefile fragments come in here.
27  ##
28 @@ -263,34 +263,34 @@
29         if [ -z "$(MULTISUBDIR)" ]; then \
30           cd $(srcdir); \
31           for FILE in $(HEADERS); do \
32 -           rm -f $(gxx_include_dir)/$$FILE ; \
33 +           rm -f $(DESTDIR)$(gxx_include_dir)/$$FILE ; \
34             if [ -f stl/$$FILE ]; then \
35 -             $(INSTALL_DATA) stl/$$FILE $(gxx_include_dir)/$$FILE ; \
36 +             $(INSTALL_DATA) stl/$$FILE $(DESTDIR)$(gxx_include_dir)/$$FILE ; \
37             else \
38 -             $(INSTALL_DATA) $$FILE $(gxx_include_dir)/$$FILE ; \
39 +             $(INSTALL_DATA) $$FILE $(DESTDIR)$(gxx_include_dir)/$$FILE ; \
40             fi ; \
41 -           chmod a-x $(gxx_include_dir)/$$FILE ; \
42 +           chmod a-x $(DESTDIR)$(gxx_include_dir)/$$FILE ; \
43           done ; \
44           for FILE in *.h std/*.h std/*.cc std/*.tcc; do \
45 -           rm -f $(gxx_include_dir)/$$FILE ; \
46 -           $(INSTALL_DATA) $$FILE $(gxx_include_dir)/$$FILE ; \
47 -           chmod a-x $(gxx_include_dir)/$$FILE ; \
48 +           rm -f $(DESTDIR)$(gxx_include_dir)/$$FILE ; \
49 +           $(INSTALL_DATA) $$FILE $(DESTDIR)$(gxx_include_dir)/$$FILE ; \
50 +           chmod a-x $(DESTDIR)$(gxx_include_dir)/$$FILE ; \
51           done ; \
52           cd stl; \
53           for FILE in *.h; do \
54 -           rm -f $(gxx_include_dir)/$$FILE ; \
55 -           $(INSTALL_DATA) $$FILE $(gxx_include_dir)/$$FILE ; \
56 -           chmod a-x $(gxx_include_dir)/$$FILE ; \
57 +           rm -f $(DESTDIR)$(gxx_include_dir)/$$FILE ; \
58 +           $(INSTALL_DATA) $$FILE $(DESTDIR)$(gxx_include_dir)/$$FILE ; \
59 +           chmod a-x $(DESTDIR)$(gxx_include_dir)/$$FILE ; \
60           done ; \
61         else true ; \
62         fi
63         rootme=`pwd`/ ; export rootme ; \
64         if [ x$(enable_version_specific_runtime_libs) != xyes ]; then \
65 -         INSTALLDIR=$(libdir); \
66 +         INSTALLDIR=$(DESTDIR)$(libdir); \
67         else \
68 -         INSTALLDIR=$(libsubdir); \
69 +         INSTALLDIR=$(DESTDIR)$(libsubdir); \
70         fi; \
71 -       INSTALLLINKDIR=$(libsubdir); \
72 +       INSTALLLINKDIR=$(DESTDIR)$(libsubdir); \
73         if [ $${INSTALLLINKDIR}$(MULTISUBDIR) = $${INSTALLDIR}$(MULTISUBDIR) ]; then \
74           RELINSTALLDIR=; \
75         elif [ x$(MULTISUBDIR) = x ]; then \