1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- Fix build on armv6

PR:		197795
Submitted by:	mikael.urankar@gmail.com
This commit is contained in:
Wen Heping 2015-03-07 14:39:53 +00:00
parent 7ad450ffeb
commit a4364e1092
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=380699
2 changed files with 36 additions and 1 deletions

View File

@ -23,4 +23,10 @@ INFO= cln
BROKEN_sparc64= Does not compile on sparc64
.include <bsd.port.mk>
.include <bsd.port.pre.mk>
.if ${ARCH} == armv6
CPPFLAGS+= -DNO_ASM
.endif
.include <bsd.port.post.mk>

View File

@ -0,0 +1,29 @@
--- src/base/cl_low.h.orig 2015-01-28 09:25:18 UTC
+++ src/base/cl_low.h
@@ -207,7 +207,7 @@ inline uint32 mulu32_unchecked (uint32 a
// declared inside a namespace!
} extern "C" uint32 mulu32_high; namespace cln { // -> High-Teil
#else
- extern "C" uint32 mulu32_high; // -> High-Teil
+} extern "C" uint32 mulu32_high; namespace cln { // -> High-Teil
#endif
#if defined(__GNUC__) && defined(__m68k__) && !defined(NO_ASM)
#define mulu32(x,y,hi_zuweisung,lo_zuweisung) \
@@ -439,7 +439,7 @@ inline uint32 mulu32_unchecked (uint32 a
// Workaround MSVC compiler bug.
} extern "C" uint16 divu_16_rest; namespace cln { // -> Rest r
#else
- extern "C" uint16 divu_16_rest; // -> Rest r
+} extern "C" uint16 divu_16_rest; namespace cln { // -> Rest r
#endif
#endif
#if defined(__GNUC__) && defined(__sparc64__) && !defined(NO_ASM)
@@ -589,7 +589,7 @@ inline uint32 mulu32_unchecked (uint32 a
// Workaround MSVC compiler bug.
} extern "C" uint32 divu_32_rest; namespace cln { // -> Rest r
#else
- extern "C" uint32 divu_32_rest; // -> Rest r
+} extern "C" uint32 divu_32_rest; namespace cln { // -> Rest r
#endif
#if defined(__GNUC__) && defined(__sparc64__) && !defined(NO_ASM)
#define divu_3232_3232(x,y,q_zuweisung,r_zuweisung) \