Does this patch work for you?
; git diff
diff --git a/Configure b/Configure
index 3dc6a42..b36bc32 100755
--- a/Configure
+++ b/Configure
@@ -1553,6 +1553,8 @@ foreach (grep /_asm_src$/, keys %target) {
($target{$obj} = $target{$src}) =~ s/\.[csS]\b/.o/g;
}
+$config{lendian} = $config{cflags} =~ /-DL_ENDIAN/ ? 'define' : 'undef';
+
# Write down our configuration where it fits #########################
open(OUT,">configdata.pm") || die "unable to create configdata.pm: $!\n";
diff --git a/include/openssl/opensslconf.h.in b/include/openssl/opensslconf.h.in
index d9f6429..9dc547f 100644
--- a/include/openssl/opensslconf.h.in
+++ b/include/openssl/opensslconf.h.in
@@ -122,6 +122,8 @@ EOF
/* Generate 80386 code? */
{- $config{processor} eq "386" ? "#define" : "#undef" -} I386_ONLY
+/* Big or little endian? */
+{- $config{lendian} eq "define" ? "#define" : "#undef" -} OPENSSL_LITTLE_ENDIAN
#undef OPENSSL_UNISTD
#define OPENSSL_UNISTD {- $target{unistd} -}
--
Senior Architect, Akamai Technologies
IM: [email protected] Twitter: RichSalz
From: Dmitry Belyavsky [mailto:[email protected]]
Sent: Thursday, February 11, 2016 12:45 PM
To: [email protected]
Subject: Re: [openssl-dev] Endianess info
Hello Rich,
On Thu, Feb 11, 2016 at 8:39 PM, Salz, Rich
<[email protected]<mailto:[email protected]>> wrote:
> Is the endianess information available in any of installed by the 1.1.0
> version *.h files?
> All the other necessary for building an algorithms-providing engine outside
> of the openssl source tree can be found in the opensslconf.h file.
No, but that's an excellent idea. Which #define do you need "moved" from an
existing header file?
I need the L_ENDIAN #define.
Thank you!
--
SY, Dmitry Belyavsky
--
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev