Blame SOURCES/shadow-4.6-respect_enable_static_no.patch

9ed61c
diff -up shadow-4.6/configure.ac.respect_enable_static_no shadow-4.6/configure.ac
9ed61c
--- shadow-4.6/configure.ac.respect_enable_static_no	2021-11-03 12:09:39.852829632 +0100
9ed61c
+++ shadow-4.6/configure.ac	2021-11-03 12:10:32.447203434 +0100
9ed61c
@@ -311,6 +311,8 @@ if test "$with_sha_crypt" = "yes"; then
9ed61c
 	AC_DEFINE(USE_SHA_CRYPT, 1, [Define to allow the SHA256 and SHA512 password encryption algorithms])
9ed61c
 fi
9ed61c
 
9ed61c
+AM_CONDITIONAL(ENABLE_SHARED, test "x$enable_shared" = "xyes")
9ed61c
+
9ed61c
 if test "$with_nscd" = "yes"; then
9ed61c
 	AC_CHECK_FUNC(posix_spawn,
9ed61c
 	              [AC_DEFINE(USE_NSCD, 1, [Define to support flushing of nscd caches])],
9ed61c
diff -up shadow-4.6/libsubid/Makefile.am.respect_enable_static_no shadow-4.6/libsubid/Makefile.am
9ed61c
--- shadow-4.6/libsubid/Makefile.am.respect_enable_static_no	2021-11-03 12:09:39.851829625 +0100
9ed61c
+++ shadow-4.6/libsubid/Makefile.am	2021-11-03 12:09:39.852829632 +0100
9ed61c
@@ -1,6 +1,8 @@
9ed61c
 lib_LTLIBRARIES = libsubid.la
9ed61c
+if ENABLE_SHARED
9ed61c
 libsubid_la_LDFLAGS = -Wl,-soname,libsubid.so.@LIBSUBID_ABI@ \
9ed61c
 	-shared -version-info @LIBSUBID_ABI_MAJOR@
9ed61c
+endif
9ed61c
 libsubid_la_SOURCES = api.c
9ed61c
 
9ed61c
 pkginclude_HEADERS = subid.h