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
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.
18 gxx_include_dir=${includedir}/g++
23 -LIBS = $(ARLIB) $(ARLINK)
24 +LIBS = $(ARLIB) $(ARLINK) $(SHLIB) $(SHLINK)
26 #### package, host, target, and site dependent Makefile fragments come in here.
29 if [ -z "$(MULTISUBDIR)" ]; then \
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 ; \
38 - $(INSTALL_DATA) $$FILE $(gxx_include_dir)/$$FILE ; \
39 + $(INSTALL_DATA) $$FILE $(DESTDIR)$(gxx_include_dir)/$$FILE ; \
41 - chmod a-x $(gxx_include_dir)/$$FILE ; \
42 + chmod a-x $(DESTDIR)$(gxx_include_dir)/$$FILE ; \
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 ; \
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 ; \
63 rootme=`pwd`/ ; export rootme ; \
64 if [ x$(enable_version_specific_runtime_libs) != xyes ]; then \
65 - INSTALLDIR=$(libdir); \
66 + INSTALLDIR=$(DESTDIR)$(libdir); \
68 - INSTALLDIR=$(libsubdir); \
69 + INSTALLDIR=$(DESTDIR)$(libsubdir); \
71 - INSTALLLINKDIR=$(libsubdir); \
72 + INSTALLLINKDIR=$(DESTDIR)$(libsubdir); \
73 if [ $${INSTALLLINKDIR}$(MULTISUBDIR) = $${INSTALLDIR}$(MULTISUBDIR) ]; then \
75 elif [ x$(MULTISUBDIR) = x ]; then \