From 15e68710e439a22550ac3aa144e59b17adad9028 Mon Sep 17 00:00:00 2001 From: miod <> Date: Fri, 18 Apr 2014 19:41:21 +0000 Subject: [PATCH] Do not ask the user to pass either -DB_ENDIAN or -DL_ENDIAN to the compiler, but rather figure out the endianness from automagically; help from guenther@ ok jca@ guenther@ beck@ and the rest of the `Buena SSL rampage club' --- src/lib/libcrypto/crypto/Makefile | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/lib/libcrypto/crypto/Makefile b/src/lib/libcrypto/crypto/Makefile index 31cab709..f46702b7 100644 --- a/src/lib/libcrypto/crypto/Makefile +++ b/src/lib/libcrypto/crypto/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.25 2014/04/18 17:32:31 miod Exp $ +# $OpenBSD: Makefile,v 1.26 2014/04/18 19:41:21 miod Exp $ LIB= crypto @@ -7,16 +7,6 @@ LCRYPTO_SRC= ${SSL_SRC}/crypto CFLAGS+= -Wall -# arm and sh default to little endian, mips defaults to big endian -.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "amd64" || \ - ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "i386" || \ - ${MACHINE_ARCH} == "mips64el" || ${MACHINE_ARCH} == "sh" || \ - ${MACHINE_ARCH} == "vax" -CFLAGS+= -DL_ENDIAN -.else -CFLAGS+= -DB_ENDIAN -.endif - .include # for 'NOPIC' definition .if !defined(NOPIC) CFLAGS+= -DDSO_DLFCN -DHAVE_DLFCN_H