diff options
author | obache <obache> | 2012-08-07 13:54:21 +0000 |
---|---|---|
committer | obache <obache> | 2012-08-07 13:54:21 +0000 |
commit | 793e0d5eec8cbb2e80e93ec2cfc4dde5b32671f9 (patch) | |
tree | 09c345071f00dbd0ab848d37837fc4cb752f745b /security/heimdal/patches | |
parent | 719552a11824dfd86d0523f60e2dda79962d7328 (diff) | |
download | pkgsrc-793e0d5eec8cbb2e80e93ec2cfc4dde5b32671f9.tar.gz |
Improve detection of __sync_add_and_fetch, avoid compiler optimization.
Fixes PR 46779.
Diffstat (limited to 'security/heimdal/patches')
-rw-r--r-- | security/heimdal/patches/patch-ad | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/security/heimdal/patches/patch-ad b/security/heimdal/patches/patch-ad index c94548a0db5..adc275b6a54 100644 --- a/security/heimdal/patches/patch-ad +++ b/security/heimdal/patches/patch-ad @@ -1,8 +1,11 @@ -$NetBSD: patch-ad,v 1.10 2011/07/08 09:49:22 adam Exp $ +$NetBSD: patch-ad,v 1.11 2012/08/07 13:54:22 obache Exp $ ---- configure.orig 2010-09-13 07:24:11.000000000 +0000 +* Not using lib${ABI} in pkgsrc. +* improve detection of __sync_add_and_fetch, avoid compiler optimization. + +--- configure.orig 2012-01-11 13:04:10.000000000 +0000 +++ configure -@@ -11779,7 +11779,11 @@ fi #if test -n "$GCC"; then +@@ -12702,7 +12702,11 @@ fi #if test -n "$GCC"; then esac CC="$CC $abi" @@ -15,3 +18,12 @@ $NetBSD: patch-ad,v 1.10 2011/07/08 09:49:22 adam Exp $ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 +@@ -26547,7 +26551,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ + int + main () + { +-unsigned int foo; __sync_add_and_fetch(&foo, 1); ++unsigned int foo, bar; bar = __sync_add_and_fetch(&foo, 1); + ; + return 0; + } |