Browse Source

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'
OPENBSD_5_6
miod 10 years ago
parent
commit
15e68710e4
1 changed files with 1 additions and 11 deletions
  1. +1
    -11
      src/lib/libcrypto/crypto/Makefile

+ 1
- 11
src/lib/libcrypto/crypto/Makefile View File

@ -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 <bsd.own.mk> # for 'NOPIC' definition
.if !defined(NOPIC)
CFLAGS+= -DDSO_DLFCN -DHAVE_DLFCN_H


Loading…
Cancel
Save