patches/gcc/4.2.4/180-c99-snprintf.patch
author |
Anthony Foiani <anthony.foiani@gmail.com> |
|
Thu May 19 23:09:43 2011 +0200 (2011-05-19) |
branch | 1.11 |
changeset 2465 |
5f98b7a90fbc |
parent 687 |
b2b6b1d46aa1
|
permissions |
-rw-r--r-- |
complibs/ppl: fix 0.11-0.11.2 to compile with --disable-shared
PPL 0.11 (through 0.11.2) had a small bug where it still tried to build
and test its Java interface even when shared libraries are disabled.
Since that's exactly what ct-ng does, it explodes.
This is the patch from the PPL authors (see final link below).
More information can be found in these messages/threads:
Anthony's initial report and analysis with Yann:
http://www.cygwin.com/ml/crossgcc/2011-05/msg00046.html
Ron Flory hit the same problem:
http://www.cygwin.com/ml/crossgcc/2011-05/msg00054.html
Anthony's report to the ppl-devel list:
http://www.cs.unipr.it/pipermail/ppl-devel/2011-May/017450.html
Roberto's reply with a link to the fix in the PPL git repo:
http://www.cs.unipr.it/pipermail/ppl-devel/2011-May/017455.html
Signed-Off-By: Anthony Foiani <anthony.foiani@gmail.com>
(transplanted from 139b85d70b623e51f7585e7c64ecb8c6a6cf4567)
yann@687
|
1 |
diff -durN gcc-4.2.1.orig/libstdc++-v3/include/c_std/std_cstdio.h gcc-4.2.1/libstdc++-v3/include/c_std/std_cstdio.h
|
yann@687
|
2 |
--- gcc-4.2.1.orig/libstdc++-v3/include/c_std/std_cstdio.h 2006-12-07 10:33:51.000000000 +0100
|
yann@687
|
3 |
+++ gcc-4.2.1/libstdc++-v3/include/c_std/std_cstdio.h 2007-08-03 20:33:24.000000000 +0200
|
yann@687
|
4 |
@@ -144,7 +144,7 @@
|
yann@687
|
5 |
|
yann@687
|
6 |
_GLIBCXX_END_NAMESPACE
|
yann@687
|
7 |
|
yann@687
|
8 |
-#if _GLIBCXX_USE_C99
|
yann@687
|
9 |
+#if _GLIBCXX_USE_C99 || defined(__UCLIBC__)
|
yann@687
|
10 |
|
yann@687
|
11 |
#undef snprintf
|
yann@687
|
12 |
#undef vfscanf
|