OpenSSL: Define little endian on x86_64.
authorPeter Avalos <pavalos@dragonflybsd.org>
Sun, 26 Sep 2010 01:53:50 +0000 (15:53 -1000)
committerPeter Avalos <pavalos@dragonflybsd.org>
Sun, 26 Sep 2010 01:53:50 +0000 (15:53 -1000)
We only support little endian archs, so remove the test, and just put it
with the rest of CFLAGS.

secure/lib/libcrypto/Makefile.inc

index f1aad5b..6db607c 100644 (file)
@@ -5,14 +5,10 @@ OSSLVERSION=  0.9.8m
 LCRYPTO_SRC=   ${.CURDIR}/../../../crypto/openssl
 LCRYPTO_DOC=   ${LCRYPTO_SRC}/doc
 
-CFLAGS+=       -DTERMIOS -DANSI_SOURCE
+CFLAGS+=       -DTERMIOS -DANSI_SOURCE -DL_ENDIAN
 CFLAGS+=       -I${LCRYPTO_SRC} -I${LCRYPTO_SRC}/crypto \
                -I${LCRYPTO_SRC}/crypto/engine -I${.OBJDIR}
 
-.if ${MACHINE_ARCH} == "i386"
-CFLAGS+= -DL_ENDIAN
-.endif
-
 MANDIR=        ${SHAREDIR}/openssl/man/man
 
 .if defined(LIB)