diff options
| author | miod <> | 2014-04-18 19:41:23 +0000 |
|---|---|---|
| committer | miod <> | 2014-04-18 19:41:23 +0000 |
| commit | 92d1f3ded5071289b10a737cb549323b5c440123 (patch) | |
| tree | e49172ab57b9f2168c16ae25c50bfce96e44abe6 /src/lib/libcrypto/crypto | |
| parent | 2abcce088a15f8c5c914e6cd07566b68bd29bcc3 (diff) | |
| download | openbsd-92d1f3ded5071289b10a737cb549323b5c440123.tar.gz openbsd-92d1f3ded5071289b10a737cb549323b5c440123.tar.bz2 openbsd-92d1f3ded5071289b10a737cb549323b5c440123.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 'src/lib/libcrypto/crypto')
| -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 |
