jer         14/05/15 21:46:42

  Added:                kyotocabinet-1.2.76-configure-8-byte-atomics.patch
                        kyotocabinet-1.2.76-flags.patch
  Removed:              remove_docinst-1.2.29.patch remove_docinst.patch
                        remove_ldconfig-1.0.4.patch remove_ldconfig.patch
                        remove_ldconfig-1.2.4.patch fix_rpath.patch
                        fix_rpath-1.2.4.patch
  Log:
  Respect AR, CFLAGS (bug #482188). Fix building on HPPA. Remove obsolete files.
  
  (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 
A792A613)

Revision  Changes    Path
1.1                  
dev-db/kyotocabinet/files/kyotocabinet-1.2.76-configure-8-byte-atomics.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/kyotocabinet/files/kyotocabinet-1.2.76-configure-8-byte-atomics.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/kyotocabinet/files/kyotocabinet-1.2.76-configure-8-byte-atomics.patch?rev=1.1&content-type=text/plain

Index: kyotocabinet-1.2.76-configure-8-byte-atomics.patch
===================================================================
From: Shawn Landden <[email protected]>
Date: Thu, 21 Jun 2012 20:34:28 -0700
Subject: configure: 8 byte atomics

fix up configure test to handle lack of 8 byte atomics correctly

as is the case with all ARM targets currently
---
 configure    |   29 +++++++++++++----------------
 configure.in |   19 ++++++++++++++++---
 2 files changed, 29 insertions(+), 19 deletions(-)

index a07063d..bfc6df0 100755
--- a/configure.in
+++ b/configure.in
@@ -238,9 +238,22 @@ fi
 # Atomic operations
 if test "$enable_atomic" != "no"
 then
-  printf 'checking for atomic operations... '
-  AC_TRY_COMPILE([], [__sync_fetch_and_add], [MYGCCATOMIC=yes], 
[MYGCCATOMIC=no])
-  if test "$MYGCCATOMIC" = "yes"
+  printf 'checking for 8 byte atomic operations... '
+  if printf '
+/* Some targets support 4 byte atomics, but not 8 byte atomics,
+ * and will fail at link time if they are used.
+ *
+ * http://gcc.gnu.org/onlinedocs/gcc-4.6.3/gcc/Atomic-Builtins.html
+ * http://gcc.gnu.org/wiki/Atomic
+ */
+#include <stdint.h>
+int
+main ()
+{
+uint64_t n = 0xdeadbeaf;
+__sync_bool_compare_and_swap(&n, 0xdeadbeaf, 0);
+return n;
+}' | $CC -xc -o config.tmp - >/dev/null 2>&1
   then
     MYCPPFLAGS="$MYCPPFLAGS -D_MYGCCATOMIC"
     printf 'yes\n'
-- 
1.7.9.5




1.1                  dev-db/kyotocabinet/files/kyotocabinet-1.2.76-flags.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/kyotocabinet/files/kyotocabinet-1.2.76-flags.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/kyotocabinet/files/kyotocabinet-1.2.76-flags.patch?rev=1.1&content-type=text/plain

Index: kyotocabinet-1.2.76-flags.patch
===================================================================
--- a/configure.in
+++ b/configure.in
@@ -35,8 +35,8 @@
 MYPCFILES="kyotocabinet.pc"
 
 # Building flags
-MYCFLAGS="-Wall -ansi -pedantic -fPIC -fsigned-char -g0"
-MYCXXFLAGS="-Wall -fPIC -fsigned-char -g0"
+MYCFLAGS="-Wall -ansi -pedantic -fPIC -fsigned-char"
+MYCXXFLAGS="-Wall -fPIC -fsigned-char"
 MYCPPFLAGS="-I. -I\$(INCLUDEDIR)"
 MYCPPFLAGS="$MYCPPFLAGS -DNDEBUG -D_GNU_SOURCE=1"
 MYCPPFLAGS="$MYCPPFLAGS -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D__EXTENSIONS__"
@@ -193,28 +193,6 @@
 # Byte order
 AC_C_BIGENDIAN(MYCPPFLAGS="$MYCPPFLAGS -D_MYBIGEND")
 
-# System-depending optimization
-printf 'checking for 64-bit availability... '
-if printf 'main() {}' | $CC -xc -m64 -o config.tmp - >config.tmp 2>&1
-then
-  MYCFLAGS="-m64 $MYCFLAGS"
-  MYCXXFLAGS="-m64 $MYCXXFLAGS"
-  printf 'yes\n'
-else
-  printf 'no\n'
-fi
-if test "$enable_opt" != "no"
-then
-  printf 'checking for CPU optimization availability... '
-  if printf 'main() {}' | $CC -xc -march=native -o config.tmp - >config.tmp 
2>&1
-  then
-    MYCFLAGS="-march=native $MYCFLAGS"
-    MYCXXFLAGS="-march=native $MYCXXFLAGS"
-    printf 'yes\n'
-  else
-    printf 'no\n'
-  fi
-fi
 printf 'checking for useless warnings... '
 if printf 'main() {}' | $CC -xc \
   -Wno-unused-but-set-variable -Wno-unused-but-set-parameter -o config.tmp - 
>config.tmp 2>&1




Reply via email to