]> git.proxmox.com Git - mirror_spl.git/commit
Fix powerpc build
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 6 Mar 2017 17:16:22 +0000 (09:16 -0800)
committerGitHub <noreply@github.com>
Mon, 6 Mar 2017 17:16:22 +0000 (09:16 -0800)
commite0aacd9b9767a877ad61b74cf87c0da856bb1e8a
tree4b70e9a5c4f511bb01ec8dc144ff9fdb65e2bb8b
parent8d5feecacfdcca29336209bdccd6493a5fa53576
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.

Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #607
rpm/generic/spl-kmod.spec.in
rpm/redhat/spl-kmod.spec.in