Blame SOURCES/shadow-4.6-respect_enable_static_no.patch

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