diff options
author | Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> | 2017-03-23 21:21:26 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2017-03-24 12:42:40 +0200 |
commit | 1eadabe4453ef32eb6c3bc837094e1ca998affcc (patch) | |
tree | 26f2616d7f2884a4537f7c2c7578a92880caf566 /misc | |
parent | 418d1b69e1ab36d3faba6dd2dfb7758aa63cd557 (diff) | |
download | rpm-1eadabe4453ef32eb6c3bc837094e1ca998affcc.tar.gz |
Only build bundled fts if system has a bad version that doesn't handle LFS
Older versions of glibc included an fts implementation that didn't have
Large File Support on 32-bit systems. We worked that around by bundling
fts into rpm codebase. Thanks to Mark Wielaard, glibc >= 2.23 has LFS
support in fts.
Unfortunately, we can't drop bundled fts because we have to support
build with other libcs which do not implement fts at all or their
implementations do not provide Large File Support.
Signed-off-by: Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
[pmatilai: Added comment to configure.ac as the test is rather subtle,
thanks for Mark Wielaard for the explanation]
Diffstat (limited to 'misc')
-rw-r--r-- | misc/Makefile.am | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/misc/Makefile.am b/misc/Makefile.am index 31d264e1d..beb9beec8 100644 --- a/misc/Makefile.am +++ b/misc/Makefile.am @@ -10,5 +10,8 @@ EXTRA_DIST = \ noinst_LTLIBRARIES = libmisc.la -libmisc_la_SOURCES = fts.c rpmfts.h +libmisc_la_SOURCES = +if USE_BUNDLED_FTS_KLUDGE +libmisc_la_SOURCES += fts.c rpmfts.h +endif libmisc_la_LIBADD = @LTLIBOBJS@ |