summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/crypto
diff options
context:
space:
mode:
authormiod <>2014-04-18 19:41:23 +0000
committermiod <>2014-04-18 19:41:23 +0000
commit930c56fd76017b058cc6c163a58bb711f073c608 (patch)
treee49172ab57b9f2168c16ae25c50bfce96e44abe6 /src/lib/libcrypto/crypto
parent698143c53d1a1e4fe680b08c6a68ab327f4b6c5d (diff)
downloadopenbsd-930c56fd76017b058cc6c163a58bb711f073c608.tar.gz
openbsd-930c56fd76017b058cc6c163a58bb711f073c608.tar.bz2
openbsd-930c56fd76017b058cc6c163a58bb711f073c608.zip
Do not ask the user to pass either -DB_ENDIAN or -DL_ENDIAN to the compiler,
but rather figure out the endianness from <machine/endian.h> automagically; help from guenther@ ok jca@ guenther@ beck@ and the rest of the `Buena SSL rampage club'
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/crypto/Makefile12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/lib/libcrypto/crypto/Makefile b/src/lib/libcrypto/crypto/Makefile
index 31cab709d9..f46702b7eb 100644
--- a/src/lib/libcrypto/crypto/Makefile
+++ b/src/lib/libcrypto/crypto/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.25 2014/04/18 17:32:31 miod Exp $ 1# $OpenBSD: Makefile,v 1.26 2014/04/18 19:41:21 miod Exp $
2 2
3LIB= crypto 3LIB= crypto
4 4
@@ -7,16 +7,6 @@ LCRYPTO_SRC= ${SSL_SRC}/crypto
7 7
8CFLAGS+= -Wall 8CFLAGS+= -Wall
9 9
10# arm and sh default to little endian, mips defaults to big endian
11.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "amd64" || \
12 ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "i386" || \
13 ${MACHINE_ARCH} == "mips64el" || ${MACHINE_ARCH} == "sh" || \
14 ${MACHINE_ARCH} == "vax"
15CFLAGS+= -DL_ENDIAN
16.else
17CFLAGS+= -DB_ENDIAN
18.endif
19
20.include <bsd.own.mk> # for 'NOPIC' definition 10.include <bsd.own.mk> # for 'NOPIC' definition
21.if !defined(NOPIC) 11.if !defined(NOPIC)
22CFLAGS+= -DDSO_DLFCN -DHAVE_DLFCN_H 12CFLAGS+= -DDSO_DLFCN -DHAVE_DLFCN_H