patches/gcc/4.3.4/400-ecjx-host-cc.patch
author |
"Yann E. MORIN" <yann.morin.1998@free.fr> |
|
Sat Jan 04 01:02:57 2014 +0100 (2014-01-04) |
changeset 3271 |
c65dc9b98841 |
permissions |
-rw-r--r-- |
cc/gcc: diable libsanitizer without NPTL
gcc-4.8 comes with a new library to sanitise memory access:
- heap-, stack-, and global-buffer overflow, use-after-free
- data-races between threads
This library requires some _np parts of the API, which are not
implemented in the (old) LinuxThreads, which is still available
in uClibc.
Since NPTL requires a i486 or above, i386 are stuck with using LT,
which precludes building the libsanitizer.
Disable libsanitizer, a bit like libatomic is.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Niels Penneman <niels@penneman.org>
nyet@1545
|
1 |
diff -ur gcc-4.3.4-orig/libjava/Makefile.in gcc-4.3.4/libjava/Makefile.in
|
nyet@1545
|
2 |
--- gcc-4.3.4-orig/libjava/Makefile.in 2009-08-04 04:12:27.000000000 -0700
|
nyet@1545
|
3 |
+++ gcc-4.3.4/libjava/Makefile.in 2009-09-23 22:03:15.750951483 -0700
|
nyet@1545
|
4 |
@@ -8874,6 +8874,9 @@
|
nyet@1545
|
5 |
ecjx$(EXEEXT): $(ecjx_OBJECTS) $(ecjx_DEPENDENCIES)
|
nyet@1545
|
6 |
@rm -f ecjx$(EXEEXT)
|
nyet@1545
|
7 |
$(ecjx_LINK) $(ecjx_LDFLAGS) $(ecjx_OBJECTS) $(ecjx_LDADD) $(LIBS)
|
nyet@1545
|
8 |
+ecjx.$(OBJEXT): $(ecjx_SOURCES)
|
nyet@1545
|
9 |
+ @rm -f ecjx.$(OBJEXT)
|
nyet@1545
|
10 |
+ $(CC_FOR_BUILD) $(BUILD_CFLAGS) -c -o $@ $<
|
nyet@1545
|
11 |
gappletviewer$(EXEEXT): $(gappletviewer_OBJECTS) $(gappletviewer_DEPENDENCIES)
|
nyet@1545
|
12 |
@rm -f gappletviewer$(EXEEXT)
|
nyet@1545
|
13 |
$(gappletviewer_LINK) $(gappletviewer_LDFLAGS) $(gappletviewer_OBJECTS) $(gappletviewer_LDADD) $(LIBS)
|