mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 03:09:34 +03:00
d98a67a53a
The EXTRA_DIST variable is ignored when used in the FALSE conditional of a Makefile.am. This results in the `make dist` target omitting these files from the generated tarball unless CONFIG_USER is defined. This issue can be avoided by switching to use the dist_noinst_DATA variable which is handled as expected by autoconf. This change also adds support for --with-config=dist as an alias for --with-config=srpm and updates the GitHub workflows to use it. Reviewed-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #13459 Closes #13505
47 lines
962 B
Makefile
47 lines
962 B
Makefile
libzfs_core_la_CFLAGS = $(AM_CFLAGS) $(LIBRARY_CFLAGS)
|
|
libzfs_core_la_CFLAGS += -fvisibility=hidden
|
|
|
|
lib_LTLIBRARIES += libzfs_core.la
|
|
CPPCHECKTARGETS += libzfs_core.la
|
|
|
|
libzfs_core_la_SOURCES = \
|
|
%D%/libzfs_core.c
|
|
|
|
if BUILD_LINUX
|
|
libzfs_core_la_SOURCES += \
|
|
%D%/os/linux/libzfs_core_ioctl.c
|
|
endif
|
|
|
|
libzfs_core_la_CPPFLAGS = $(AM_CPPFLAGS)
|
|
if BUILD_FREEBSD
|
|
libzfs_core_la_CPPFLAGS += -Iinclude/os/freebsd/zfs
|
|
|
|
libzfs_core_la_SOURCES += \
|
|
%D%/os/freebsd/libzfs_core_ioctl.c
|
|
|
|
nodist_libzfs_core_la_SOURCES = \
|
|
module/os/freebsd/zfs/zfs_ioctl_compat.c
|
|
endif
|
|
|
|
libzfs_core_la_LIBADD = \
|
|
libnvpair.la \
|
|
libspl.la
|
|
|
|
libzfs_core_la_LIBADD += $(LTLIBINTL)
|
|
|
|
libzfs_core_la_LDFLAGS = -pthread
|
|
|
|
if !ASAN_ENABLED
|
|
libzfs_core_la_LDFLAGS += -Wl,-z,defs
|
|
endif
|
|
|
|
if BUILD_FREEBSD
|
|
libzfs_core_la_LIBADD += -lutil -lgeom
|
|
endif
|
|
|
|
libzfs_core_la_LDFLAGS += -version-info 3:0:0
|
|
|
|
pkgconfig_DATA += %D%/libzfs_core.pc
|
|
|
|
dist_noinst_DATA += %D%/libzfs_core.abi %D%/libzfs_core.suppr
|