OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
2.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../uclibc/pkg_patch/gcc/300-libstdc++-pic.patch
  5. # Copyright (C) 2009 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. # DP: Build and install libstdc++_pic.a library.
  17. --- gcc/libstdc++-v3/src/Makefile.am
  18. +++ gcc/libstdc++-v3/src/Makefile.am
  19. @@ -214,6 +214,12 @@
  20. $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LDFLAGS) -o $@
  21. +install-exec-local:
  22. +ifeq ($(enable_shared),yes)
  23. + $(AR) cru libstdc++_pic.a .libs/*.o $(top_builddir)/libsupc++/*.o
  24. + $(INSTALL_DATA) libstdc++_pic.a $(DESTDIR)$(toolexeclibdir)
  25. +endif
  26. +
  27. # Added bits to build debug library.
  28. if GLIBCXX_BUILD_DEBUG
  29. all-local: build_debug
  30. --- gcc/libstdc++-v3/src/Makefile.in
  31. +++ gcc/libstdc++-v3/src/Makefile.in
  32. @@ -627,7 +627,7 @@
  33. install-data-am: install-data-local
  34. -install-exec-am: install-toolexeclibLTLIBRARIES
  35. +install-exec-am: install-toolexeclibLTLIBRARIES install-exec-local
  36. install-info: install-info-am
  37. @@ -660,6 +660,7 @@
  38. distclean-libtool distclean-tags distdir dvi dvi-am html \
  39. html-am info info-am install install-am install-data \
  40. install-data-am install-data-local install-exec \
  41. + install-exec-local \
  42. install-exec-am install-info install-info-am install-man \
  43. install-strip install-toolexeclibLTLIBRARIES installcheck \
  44. installcheck-am installdirs maintainer-clean \
  45. @@ -743,6 +743,13 @@
  46. install_debug:
  47. (cd ${debugdir} && $(MAKE) \
  48. toolexeclibdir=$(glibcxx_toolexeclibdir)/debug install)
  49. +
  50. +install-exec-local:
  51. +ifeq ($(enable_shared),yes)
  52. + $(AR) cru libstdc++_pic.a *.o $(top_builddir)/libsupc++/*.o
  53. + $(INSTALL_DATA) libstdc++_pic.a $(DESTDIR)$(toolexeclibdir)
  54. +endif
  55. +
  56. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  57. # Otherwise a system limit (for SysV at least) may be exceeded.
  58. .NOEXPORT: