svn commit: r290274 - in stable: 10/secure/lib/libcrypto 9/secure/lib/libcrypto
Jung-uk Kim
jkim at FreeBSD.org
Mon Nov 2 17:41:16 UTC 2015
Author: jkim
Date: Mon Nov 2 17:41:15 2015
New Revision: 290274
URL: https://svnweb.freebsd.org/changeset/base/290274
Log:
MFC: r290121
Define endianness for non-x86 platforms.
Modified:
stable/10/secure/lib/libcrypto/Makefile.inc
Directory Properties:
stable/10/ (props changed)
Changes in other areas also in this revision:
Modified:
stable/9/secure/lib/libcrypto/Makefile.inc
Directory Properties:
stable/9/secure/lib/libcrypto/ (props changed)
Modified: stable/10/secure/lib/libcrypto/Makefile.inc
==============================================================================
--- stable/10/secure/lib/libcrypto/Makefile.inc Mon Nov 2 16:56:34 2015 (r290273)
+++ stable/10/secure/lib/libcrypto/Makefile.inc Mon Nov 2 17:41:15 2015 (r290274)
@@ -13,8 +13,16 @@ CFLAGS+= -DTERMIOS -DANSI_SOURCE
CFLAGS+= -I${LCRYPTO_SRC} -I${LCRYPTO_SRC}/crypto -I${.OBJDIR}
CFLAGS+= -DOPENSSL_THREADS -DDSO_DLFCN -DHAVE_DLFCN_H
+.include <bsd.endian.mk>
+
+.if ${TARGET_ENDIANNESS} == 1234
+CFLAGS+=-DL_ENDIAN
+.elif ${TARGET_ENDIANNESS} == 4321
+CFLAGS+=-DB_ENDIAN
+.endif
+
.if ${MACHINE_CPUARCH} == "amd64"
-CFLAGS+=-DL_ENDIAN -DOPENSSL_IA32_SSE2
+CFLAGS+=-DOPENSSL_IA32_SSE2
CFLAGS+=-DAES_ASM -DBSAES_ASM -DVPAES_ASM
CFLAGS+=-DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m
CFLAGS+=-DMD5_ASM
@@ -22,7 +30,7 @@ CFLAGS+=-DGHASH_ASM
CFLAGS+=-DSHA1_ASM -DSHA256_ASM -DSHA512_ASM
CFLAGS+=-DWHIRLPOOL_ASM
.elif ${MACHINE_CPUARCH} == "i386"
-CFLAGS+=-DL_ENDIAN -DOPENSSL_IA32_SSE2
+CFLAGS+=-DOPENSSL_IA32_SSE2
CFLAGS+=-DAES_ASM -DVPAES_ASM
CFLAGS+=-DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m
CFLAGS+=-DMD5_ASM
More information about the svn-src-stable-10
mailing list