svn commit: r193446 - in projects/clangbsd:
crypto/openssl/crypto/rc5 secure/lib/libcrypto
Ed Schouten
ed at FreeBSD.org
Thu Jun 4 18:03:13 UTC 2009
Author: ed
Date: Thu Jun 4 18:03:13 2009
New Revision: 193446
URL: http://svn.freebsd.org/changeset/base/193446
Log:
Allow us to build libcrypto with Clang.
Modified:
projects/clangbsd/crypto/openssl/crypto/rc5/rc5.h
projects/clangbsd/secure/lib/libcrypto/Makefile
projects/clangbsd/secure/lib/libcrypto/Makefile.inc
Modified: projects/clangbsd/crypto/openssl/crypto/rc5/rc5.h
==============================================================================
--- projects/clangbsd/crypto/openssl/crypto/rc5/rc5.h Thu Jun 4 18:03:03 2009 (r193445)
+++ projects/clangbsd/crypto/openssl/crypto/rc5/rc5.h Thu Jun 4 18:03:13 2009 (r193446)
@@ -73,7 +73,11 @@ extern "C" {
#define RC5_DECRYPT 0
/* 32 bit. For Alpha, things may get weird */
+#ifdef __amd64__
+#define RC5_32_INT unsigned int
+#else
#define RC5_32_INT unsigned long
+#endif
#define RC5_32_BLOCK 8
#define RC5_32_KEY_LENGTH 16 /* This is a default, max is 255 */
Modified: projects/clangbsd/secure/lib/libcrypto/Makefile
==============================================================================
--- projects/clangbsd/secure/lib/libcrypto/Makefile Thu Jun 4 18:03:03 2009 (r193445)
+++ projects/clangbsd/secure/lib/libcrypto/Makefile Thu Jun 4 18:03:13 2009 (r193446)
@@ -3,12 +3,11 @@
SHLIBDIR?= /lib
SUBDIR= engines
+.include <bsd.own.mk>
+
LIB= crypto
SHLIB_MAJOR= 5
-# XXX: LLVM PR3678
-CFLAGS+= -DOPENSSL_NO_INLINE_ASM
-
NO_LINT=
.if exists(Makefile.man)
Modified: projects/clangbsd/secure/lib/libcrypto/Makefile.inc
==============================================================================
--- projects/clangbsd/secure/lib/libcrypto/Makefile.inc Thu Jun 4 18:03:03 2009 (r193445)
+++ projects/clangbsd/secure/lib/libcrypto/Makefile.inc Thu Jun 4 18:03:13 2009 (r193446)
@@ -14,7 +14,7 @@ CFLAGS+= -DOPENSSL_NO_IDEA
.endif
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
-CFLAGS+= -DL_ENDIAN
+CFLAGS+= -DL_ENDIAN -DMD32_REG_T=int
.endif
MANDIR= ${SHAREDIR}/openssl/man/man
More information about the svn-src-projects
mailing list