aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p/mldonkey
diff options
context:
space:
mode:
authortijl <tijl@FreeBSD.org>2013-10-19 15:56:48 +0800
committertijl <tijl@FreeBSD.org>2013-10-19 15:56:48 +0800
commitbf0795585d68bc71783e02c17abe1320db33910a (patch)
treed39919b69e6eb51a7ced22acf28f6cd6a6d5eb6f /net-p2p/mldonkey
parent4a5cad7bdb84b65d1661f37be2bf9b9928fad603 (diff)
downloadfreebsd-ports-gnome-bf0795585d68bc71783e02c17abe1320db33910a.tar.gz
freebsd-ports-gnome-bf0795585d68bc71783e02c17abe1320db33910a.tar.zst
freebsd-ports-gnome-bf0795585d68bc71783e02c17abe1320db33910a.zip
Fix build with clang on i386 by disabling inline asm that uses
intel syntax. PR: ports/180595
Diffstat (limited to 'net-p2p/mldonkey')
-rw-r--r--net-p2p/mldonkey/files/patch-src-utils-lib-CryptoPP.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/net-p2p/mldonkey/files/patch-src-utils-lib-CryptoPP.h b/net-p2p/mldonkey/files/patch-src-utils-lib-CryptoPP.h
new file mode 100644
index 000000000000..bf8afe9faec9
--- /dev/null
+++ b/net-p2p/mldonkey/files/patch-src-utils-lib-CryptoPP.h
@@ -0,0 +1,11 @@
+--- src/utils/lib/CryptoPP.h.orig
++++ src/utils/lib/CryptoPP.h
+@@ -274,7 +274,7 @@
+ // CodeWarrior defines _MSC_VER
+ #if !defined(CRYPTOPP_DISABLE_X86ASM) && ((defined(_MSC_VER) && !defined(__MWERKS__) && defined(_M_IX86)) || (defined(__GNUC__) && defined(__i386__)))
+ // The x86 version of MacOSX fails when asm is enabled.
+- #if !defined(__i386__) || !defined(__APPLE__)
++ #if !defined(__APPLE__) && !defined(__clang__)
+ #define CRYPTOPP_X86ASM_AVAILABLE
+ #endif
+ #endif