- Fix build on amd64 < 9.0 by disabling assembly optimizations
This commit is contained in:
parent
01aab7ded7
commit
f3a78c5dfa
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=318232
1 changed files with 20 additions and 0 deletions
20
x11-toolkits/fox17/files/patch-lib_FXAtomic.cpp
Normal file
20
x11-toolkits/fox17/files/patch-lib_FXAtomic.cpp
Normal file
|
@ -0,0 +1,20 @@
|
|||
--- lib/FXAtomic.cpp.orig 2013-05-15 09:08:20.000000000 +0200
|
||||
+++ lib/FXAtomic.cpp 2013-05-15 09:09:22.000000000 +0200
|
||||
@@ -71,11 +71,17 @@
|
||||
#if defined( __INTEL_COMPILER ) && !defined( __ia64__ )
|
||||
#undef HAVE_BUILTIN_SYNC
|
||||
#endif
|
||||
+#if defined(__FreeBSD__) && defined(__amd64__) && __FreeBSD_version < 900000
|
||||
+#undef HAVE_BUILTIN_SYNC
|
||||
+#endif
|
||||
#endif
|
||||
|
||||
// Have inline assembly only when using GNU C++ or Intel C++
|
||||
#if (defined(__GNUC__) || defined(__INTEL_COMPILER))
|
||||
#define HAVE_INLINE_ASSEMBLY 1
|
||||
+#if defined(__FreeBSD__) && defined(__amd64__) && __FreeBSD_version < 900000
|
||||
+#undef HAVE_INLINE_ASSEMBLY
|
||||
+#endif
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in a new issue