diff options
author | Zack Weinberg <zackw@panix.com> | 2021-03-18 11:53:11 -0400 |
---|---|---|
committer | Zack Weinberg <zackw@panix.com> | 2021-03-18 11:53:11 -0400 |
commit | f0b79206fd841fada9e5372941d3623a21a50c0c (patch) | |
tree | efbe83679191c3204a94b2d6b5ce08e2fc5b9264 /Makefile.am | |
parent | f0ca1fe2275381f37b21faede6ae873986636254 (diff) | |
download | libxcrypt-f0b79206fd841fada9e5372941d3623a21a50c0c.tar.gz libxcrypt-f0b79206fd841fada9e5372941d3623a21a50c0c.tar.bz2 libxcrypt-f0b79206fd841fada9e5372941d3623a21a50c0c.zip |
Don’t build xcrypt.h if we’re not going to install it.
All of the functions declared by xcrypt.h are defined using
strong_alias(), which does not need a prototype to be visible.
In fact, the entire contents of xcrypt.h are already #ifdefed out
when building libxcrypt itself. So it’s not necessary to include it
internally. If we stop including it internally, then we don’t need
to build it when it’s not going to be installed, and we can remove
the #ifndef IN_LIBCRYPT from the installed header.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am index 64c37fc..0002545 100644 --- a/Makefile.am +++ b/Makefile.am @@ -84,8 +84,6 @@ noinst_HEADERS = \ if ENABLE_XCRYPT_COMPAT_FILES nodist_include_HEADERS += xcrypt.h -else -nodist_noinst_HEADERS += xcrypt.h endif noinst_PROGRAMS = \ @@ -176,7 +174,7 @@ DISTCLEANFILES = .deps/*.Plo # Force generated headers to be generated before any source files that # might depend on them are compiled. -Makefile.deps: crypt.h crypt-hashes.h crypt-symbol-vers.h xcrypt.h +Makefile.deps: crypt.h crypt-hashes.h crypt-symbol-vers.h $(AM_V_GEN)LC_ALL=C echo "# Deps" > Makefile.deps.T $(AM_V_at)mv -f Makefile.deps.T Makefile.deps |