Blame SOURCES/shadow-4.6-respect_enable_static_no.patch

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