Author: jkim
Date: Mon Nov  2 17:41:15 2015
New Revision: 290274
URL: https://svnweb.freebsd.org/changeset/base/290274

Log:
  MFC:  r290121
  
  Define endianness for non-x86 platforms.

Modified:
  stable/9/secure/lib/libcrypto/Makefile.inc
Directory Properties:
  stable/9/secure/lib/libcrypto/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/10/secure/lib/libcrypto/Makefile.inc
Directory Properties:
  stable/10/   (props changed)

Modified: stable/9/secure/lib/libcrypto/Makefile.inc
==============================================================================
--- stable/9/secure/lib/libcrypto/Makefile.inc  Mon Nov  2 16:56:34 2015        
(r290273)
+++ stable/9/secure/lib/libcrypto/Makefile.inc  Mon Nov  2 17:41:15 2015        
(r290274)
@@ -17,8 +17,12 @@ CFLAGS+=     -DOPENSSL_THREADS -DDSO_DLFCN -
 CFLAGS+=       -DOPENSSL_NO_IDEA
 .endif
 
-.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
-CFLAGS+= -DL_ENDIAN
+.include <bsd.endian.mk>
+
+.if ${TARGET_ENDIANNESS} == 1234
+CFLAGS+=       -DL_ENDIAN
+.elif ${TARGET_ENDIANNESS} == 4321
+CFLAGS+=       -DB_ENDIAN
 .endif
 
 MANDIR=        ${SHAREDIR}/openssl/man/man
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to