Define endianness for non-x86 platforms.
MFC after: 3 days
This commit is contained in:
parent
9454cab093
commit
4515ede9ab
@ -13,8 +13,16 @@ CFLAGS+= -DTERMIOS -DANSI_SOURCE
|
|||||||
CFLAGS+= -I${LCRYPTO_SRC} -I${LCRYPTO_SRC}/crypto -I${.OBJDIR}
|
CFLAGS+= -I${LCRYPTO_SRC} -I${LCRYPTO_SRC}/crypto -I${.OBJDIR}
|
||||||
CFLAGS+= -DOPENSSL_THREADS -DDSO_DLFCN -DHAVE_DLFCN_H
|
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"
|
.if ${MACHINE_CPUARCH} == "amd64"
|
||||||
CFLAGS+=-DL_ENDIAN -DOPENSSL_IA32_SSE2
|
CFLAGS+=-DOPENSSL_IA32_SSE2
|
||||||
CFLAGS+=-DAES_ASM -DBSAES_ASM -DVPAES_ASM
|
CFLAGS+=-DAES_ASM -DBSAES_ASM -DVPAES_ASM
|
||||||
CFLAGS+=-DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m
|
CFLAGS+=-DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m
|
||||||
CFLAGS+=-DMD5_ASM
|
CFLAGS+=-DMD5_ASM
|
||||||
@ -22,7 +30,7 @@ CFLAGS+=-DGHASH_ASM
|
|||||||
CFLAGS+=-DSHA1_ASM -DSHA256_ASM -DSHA512_ASM
|
CFLAGS+=-DSHA1_ASM -DSHA256_ASM -DSHA512_ASM
|
||||||
CFLAGS+=-DWHIRLPOOL_ASM
|
CFLAGS+=-DWHIRLPOOL_ASM
|
||||||
.elif ${MACHINE_CPUARCH} == "i386"
|
.elif ${MACHINE_CPUARCH} == "i386"
|
||||||
CFLAGS+=-DL_ENDIAN -DOPENSSL_IA32_SSE2
|
CFLAGS+=-DOPENSSL_IA32_SSE2
|
||||||
CFLAGS+=-DAES_ASM -DVPAES_ASM
|
CFLAGS+=-DAES_ASM -DVPAES_ASM
|
||||||
CFLAGS+=-DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m
|
CFLAGS+=-DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m
|
||||||
CFLAGS+=-DMD5_ASM
|
CFLAGS+=-DMD5_ASM
|
||||||
|
Loading…
x
Reference in New Issue
Block a user