The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / pcre / 0001-no-compat.patch
1 Kill ABI compatibility bits, we don't need them.
2 Fixes build failures on non-ELF (blackfin) targets.
3
4 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
5
6 diff -Nura pcre-8.32.orig/pcrecpp.cc pcre-8.32/pcrecpp.cc
7 --- pcre-8.32.orig/pcrecpp.cc   2012-12-28 08:32:10.193847937 -0300
8 +++ pcre-8.32/pcrecpp.cc        2012-12-28 08:32:26.924376180 -0300
9 @@ -58,22 +58,6 @@
10  // Special object that stands-in for no argument
11  Arg RE::no_arg((void*)NULL);
12  
13 -// This is for ABI compatibility with old versions of pcre (pre-7.6),
14 -// which defined a global no_arg variable instead of putting it in the
15 -// RE class.  This works on GCC >= 3, at least.  It definitely works
16 -// for ELF, but may not for other object formats (Mach-O, for
17 -// instance, does not support aliases.)  We could probably have a more
18 -// inclusive test if we ever needed it.  (Note that not only the
19 -// __attribute__ syntax, but also __USER_LABEL_PREFIX__, are
20 -// gnu-specific.)
21 -#if defined(__GNUC__) && __GNUC__ >= 3 && defined(__ELF__)
22 -# define ULP_AS_STRING(x)            ULP_AS_STRING_INTERNAL(x)
23 -# define ULP_AS_STRING_INTERNAL(x)   #x
24 -# define USER_LABEL_PREFIX_STR       ULP_AS_STRING(__USER_LABEL_PREFIX__)
25 -extern Arg no_arg
26 -  __attribute__((alias(USER_LABEL_PREFIX_STR "_ZN7pcrecpp2RE6no_argE")));
27 -#endif
28 -
29  // If a regular expression has no error, its error_ field points here
30  static const string empty_string;
31