diff options
author | miod <> | 2014-04-18 19:41:23 +0000 |
---|---|---|
committer | miod <> | 2014-04-18 19:41:23 +0000 |
commit | 930c56fd76017b058cc6c163a58bb711f073c608 (patch) | |
tree | e49172ab57b9f2168c16ae25c50bfce96e44abe6 /src/lib/libcrypto/crypto | |
parent | 698143c53d1a1e4fe680b08c6a68ab327f4b6c5d (diff) | |
download | openbsd-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/Makefile | 12 |
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 | ||
3 | LIB= crypto | 3 | LIB= crypto |
4 | 4 | ||
@@ -7,16 +7,6 @@ LCRYPTO_SRC= ${SSL_SRC}/crypto | |||
7 | 7 | ||
8 | CFLAGS+= -Wall | 8 | CFLAGS+= -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" | ||
15 | CFLAGS+= -DL_ENDIAN | ||
16 | .else | ||
17 | CFLAGS+= -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) |
22 | CFLAGS+= -DDSO_DLFCN -DHAVE_DLFCN_H | 12 | CFLAGS+= -DDSO_DLFCN -DHAVE_DLFCN_H |