]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Fix libspl assembler flags to respect cpu type
authorKireinaHoro <i@jsteward.moe>
Wed, 11 Oct 2017 05:36:26 +0000 (13:36 +0800)
committerKireinaHoro <i@jsteward.moe>
Wed, 11 Oct 2017 17:36:16 +0000 (01:36 +0800)
It's important to respect the user's CFLAGS as mismatched -mcpu
will directly result in the assembler not able to produce correct
code. Fixes #6733.

Signed-off-by: Pengcheng Xu <i@jsteward.moe>
lib/libspl/Makefile.am

index 28ae153519f5c59a4d70fc5f873f28feb10574ec..7efadae8e97eb6ee82fd38c51fba97eeb9e51e1e 100644 (file)
@@ -13,7 +13,8 @@ DEFAULT_INCLUDES += \
        -I$(top_srcdir)/lib/libspl/include
 
 AM_CCASFLAGS = \
-       -I$(top_srcdir)/lib/libspl/include
+       -I$(top_srcdir)/lib/libspl/include \
+       $(CFLAGS)
 
 noinst_LTLIBRARIES = libspl.la