diff options
author | jkim <jkim@FreeBSD.org> | 2015-10-28 22:49:37 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2015-10-28 22:49:37 +0000 |
commit | 4515ede9ab38266c8ee1f58b257430392d1646c6 (patch) | |
tree | 275801ad001058f341ced24bd2cdebb3fc0f30df /secure/lib/libcrypto/Makefile.inc | |
parent | 9454cab0930e289e6f8a19f57d2dd3a7e2a53c91 (diff) | |
download | FreeBSD-src-4515ede9ab38266c8ee1f58b257430392d1646c6.zip FreeBSD-src-4515ede9ab38266c8ee1f58b257430392d1646c6.tar.gz |
Define endianness for non-x86 platforms.
MFC after: 3 days
Diffstat (limited to 'secure/lib/libcrypto/Makefile.inc')
-rw-r--r-- | secure/lib/libcrypto/Makefile.inc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/secure/lib/libcrypto/Makefile.inc b/secure/lib/libcrypto/Makefile.inc index 8b47ad2..29d563f 100644 --- a/secure/lib/libcrypto/Makefile.inc +++ b/secure/lib/libcrypto/Makefile.inc @@ -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 |