patches/gcc/4.1.1/130-libstdc++-pic.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Oct 14 17:42:10 2008 +0000 (2008-10-14)
changeset 929 7c958fb04f28
parent 1 eeea35fbf182
permissions -rw-r--r--
Sample config for e500v2 toolchain

On Tuesday 14 October 2008 17:05:31 Nate Case wrote:
> This is a sample config file for Freescale e500v2 processors (e.g.,
> MPC8548, MPC8572). It uses eglibc (for e500/SPE patches) and a recent
> gcc (4.3.1, for e500v2 DPFP support) and will generate appropriate
> dual-precision floating point instructions by default.
>
> Note: If building a Linux kernel with this toolchain, you will want to
> make sure -mno-spe AND -mspe=no are passed to gcc to prevent SPE
> ABI/instructions from getting into the kernel (which is currently
> unsupported). At this time, the kernel build system only passes
> -mno-spe by default (this should be fixed soon hopefully).
>
> A binutils snapshot is used to fix a bug present in 2.18 preventing
> U-Boot from being compiled (CodeSourcery issue #2297: internal.h
> (ELF_IS_SECTION_IN_SEGMENT): Adjust to cope with segments at the end of
> memory).

Obsoletes the powerpc-unknown-linux-gnuspe sample, so remove it.

/trunk/samples/powerpc-e500v2-linux-gnuspe/crosstool.config | 307 307 0 0 +++++++++++++++++++
1 file changed, 307 insertions(+)
yann@1
     1
# DP: Build and install libstdc++_pic.a library.
yann@1
     2
yann@1
     3
--- gcc/libstdc++-v3/src/Makefile.am
yann@1
     4
+++ gcc/libstdc++-v3/src/Makefile.am
yann@1
     5
@@ -214,6 +214,12 @@
yann@1
     6
 	  $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LDFLAGS) -o $@
yann@1
     7
 
yann@1
     8
 
yann@1
     9
+install-exec-local:
yann@1
    10
+ifeq ($(enable_shared),yes)
yann@1
    11
+	$(AR) cru libstdc++_pic.a .libs/*.o $(top_builddir)/libsupc++/*.o
yann@1
    12
+	$(INSTALL_DATA) libstdc++_pic.a $(DESTDIR)$(toolexeclibdir)
yann@1
    13
+endif
yann@1
    14
+
yann@1
    15
 # Added bits to build debug library.
yann@1
    16
 if GLIBCXX_BUILD_DEBUG
yann@1
    17
 all-local: build_debug
yann@1
    18
--- gcc/libstdc++-v3/src/Makefile.in
yann@1
    19
+++ gcc/libstdc++-v3/src/Makefile.in
yann@1
    20
@@ -627,7 +627,7 @@
yann@1
    21
 
yann@1
    22
 install-data-am: install-data-local
yann@1
    23
 
yann@1
    24
-install-exec-am: install-toolexeclibLTLIBRARIES
yann@1
    25
+install-exec-am: install-toolexeclibLTLIBRARIES install-exec-local
yann@1
    26
 
yann@1
    27
 install-info: install-info-am
yann@1
    28
 
yann@1
    29
@@ -660,6 +660,7 @@
yann@1
    30
 	distclean-libtool distclean-tags distdir dvi dvi-am html \
yann@1
    31
 	html-am info info-am install install-am install-data \
yann@1
    32
 	install-data-am install-data-local install-exec \
yann@1
    33
+	install-exec-local \
yann@1
    34
 	install-exec-am install-info install-info-am install-man \
yann@1
    35
 	install-strip install-toolexeclibLTLIBRARIES installcheck \
yann@1
    36
 	installcheck-am installdirs maintainer-clean \
yann@1
    37
@@ -743,6 +743,13 @@
yann@1
    38
 install_debug:
yann@1
    39
 	(cd ${debugdir} && $(MAKE) \
yann@1
    40
 	toolexeclibdir=$(glibcxx_toolexeclibdir)/debug install)
yann@1
    41
+
yann@1
    42
+install-exec-local:
yann@1
    43
+ifeq ($(enable_shared),yes)
yann@1
    44
+	$(AR) cru libstdc++_pic.a *.o $(top_builddir)/libsupc++/*.o
yann@1
    45
+	$(INSTALL_DATA) libstdc++_pic.a $(DESTDIR)$(toolexeclibdir)
yann@1
    46
+endif
yann@1
    47
+
yann@1
    48
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
yann@1
    49
 # Otherwise a system limit (for SysV at least) may be exceeded.
yann@1
    50
 .NOEXPORT: