CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
gcc: added patch to use the new /lib/ld-linux-armhf.so.3 linker provided by glibc...
authorVictor Martinez <pitillo@ono.com>
Wed, 28 Nov 2012 16:49:28 +0000 (16:49 +0000)
committerVictor Martinez <pitillo@ono.com>
Wed, 28 Nov 2012 16:49:28 +0000 (16:49 +0000)
gcc/.md5sum
gcc/Pkgfile
gcc/gcc-4.7.2-gnueabihf.patch

index 0022146d0f57d650483a1ddf1a67ddd95077a501..697168913fc17e1c8b925500ee5f750fa2ee4c8e 100644 (file)
@@ -1,3 +1,3 @@
-4d1f0b8cdba332c11014880162632080  gcc-4.7.2-gnueabihf.patch
+2842d72b2e41e19a082cb73681dc5e41  gcc-4.7.2-gnueabihf.patch
 cc308a0891e778cfda7a151ab8a6e762  gcc-4.7.2.tar.bz2
 a617c4d3fa11e0c9410ac213eb061677  gcc-nocheck-fixincludes.patch
index e3f9a56f557663aa1fd719b3b9315aa9cad24464..93fed3520337f8a6ce6a63520a52d77c869836c7 100644 (file)
@@ -36,6 +36,7 @@ build() {
                               --enable-__cxa_atexit \
                               --enable-clocale=gnu \
                               --enable-shared \
+                              --with-float=hard \
                               --disable-nls \
                               --with-x=no \
                               --with-system-zlib \
index 8a77a7a31afcd68d7fb5ae08a12a193fd964c57b..fd74b0e3f0923b2d79ed8b75d728d138ad5a57d0 100644 (file)
@@ -133,3 +133,19 @@ diff -pruN gcc-4.7.2.orig/libstdc++-v3/configure.host gcc-4.7.2/libstdc++-v3/con
        port_specific_symbol_files="\$(srcdir)/../config/os/gnu-linux/arm-eabi-extra.ver"
        ;;
      esac
+diff -pruN gcc-4.7.2.orig/gcc/config/arm/linux-eabi.h gcc-4.7.2/gcc/config/arm/linux-eabi.h
+--- gcc-4.7.2.orig/gcc/config/arm/linux-eabi.h 2012-11-26 14:44:44.335493878 +0000
++++ gcc-4.7.2/gcc/config/arm/linux-eabi.h      2012-11-26 14:55:06.599515067 +0000
+@@ -62,7 +62,11 @@
+ /* Use ld-linux.so.3 so that it will be possible to run "classic"
+    GNU/Linux binaries on an EABI system.  */
+ #undef  GLIBC_DYNAMIC_LINKER
+-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.3"
++#define GLIBC_DYNAMIC_LINKER_SOFT_FLOAT "/lib/ld-linux.so.3"
++#define GLIBC_DYNAMIC_LINKER_HARD_FLOAT "/lib/ld-linux-armhf.so.3"
++#define GLIBC_DYNAMIC_LINKER \
++   "%{mfloat-abi=hard:" GLIBC_DYNAMIC_LINKER_HARD_FLOAT "} \
++    %{!mfloat-abi=hard:" GLIBC_DYNAMIC_LINKER_SOFT_FLOAT "}"
+
+ /* At this point, bpabi.h will have clobbered LINK_SPEC.  We want to
+    use the GNU/Linux version, not the generic BPABI version.  */