]> git.proxmox.com Git - mirror_zfs.git/commit
Fix libspl/asm-generic/atomic for VPATH build
authorArvind Sankar <nivedita@alum.mit.edu>
Fri, 19 Jun 2020 19:24:20 +0000 (15:24 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 25 Jun 2020 01:19:36 +0000 (18:19 -0700)
commit2989d1012ac00b4134a0dc490917e0b0d048d289
treebf1be8175daedec6b6e5c4bb1c051f9f5eff0843
parent109d2c93102049e7d7fdd5de7f9edff717224b32
Fix libspl/asm-generic/atomic for VPATH build

Currently, asm-generic/atomic.c is compiled into a .S file, with a
comment saying this is to simplify the upper-level Makefile.

However, this doesn't work properly with a VPATH build, which would
require better logic to deal with generated sources correctly.

It also doesn't seem more complex to just specify the .c/.S source file,
depending on the cpu, instead of only the source directory in
lib/libspl/Makefile.am, which eliminates the need to do the intermediate
compilation.

Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Closes #10493
lib/libspl/Makefile.am
lib/libspl/asm-generic/Makefile.am
lib/libspl/asm-i386/Makefile.am
lib/libspl/asm-x86_64/Makefile.am