diff options
author | Brian Behlendorf <[email protected]> | 2017-03-06 09:17:24 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2017-03-06 09:17:24 -0800 |
commit | fb963d33ee0dd350143ba1c9cd35d5f7d86910d2 (patch) | |
tree | be973f1812a627ca6af088dea34230233272fdfc /lib | |
parent | ebd9aa8c17596db4990979bb2f0df3f23d438115 (diff) |
Fix powerpc build
Unlike other architectures which sanitize the LDFLAGS from the
environment in arch/<arch>/Makefile. The powerpc Makefile
allows LDFLAGS to be passed through resulting in the following
build failure.
/usr/bin/ld: unrecognized option '-Wl,-z,relro'
LDFLAGS is set in /usr/lib/rpm/redhat/macros by default. Clear
the environment variable when building kmods for powerpc.
Additionally, now that ppc64le exists it's not longer safe to
assume a powerpc system is big endian. Rely on the endianness
provided by the compiler.
Reviewed-by: Giuseppe Di Natale <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #5856
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libspl/include/sys/isa_defs.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/libspl/include/sys/isa_defs.h b/lib/libspl/include/sys/isa_defs.h index 3bca5cf02..90d7a4971 100644 --- a/lib/libspl/include/sys/isa_defs.h +++ b/lib/libspl/include/sys/isa_defs.h @@ -98,10 +98,6 @@ extern "C" { #endif #endif -#if !defined(_BIG_ENDIAN) -#define _BIG_ENDIAN -#endif - #define _SUNOS_VTOC_16 /* arm arch specific defines */ |