--- /dev/null
+--- gnuastro-0.17/lib/Makefile.am.orig 2022-03-04 00:10:24.000000000 +0100
++++ gnuastro-0.17/lib/Makefile.am 2022-06-26 22:40:32.216699320 +0200
+@@ -46,9 +46,9 @@ AM_CPPFLAGS = -I\$(top_builddir)/bootstr
+ # features. This also avoids the need for the programs to link separately
+ # with Gnulib, they only need to link with the Gnuastro library.
+ lib_LTLIBRARIES = libgnuastro.la
+-libgnuastro_la_LDFLAGS = -version-info $(GAL_LT_VERSION) $(CONFIG_LDADD) \
++libgnuastro_la_LDFLAGS = -version-info $(GAL_LT_VERSION) \
+ -lc -no-undefined
+-libgnuastro_la_LIBADD = $(top_builddir)/bootstrapped/lib/libgnu.la
++libgnuastro_la_LIBADD = $(top_builddir)/bootstrapped/lib/libgnu.la $(CONFIG_LDADD)
+
+
+
# Source0-md5: dc1a9d0dba6550cc8eded53ecfd7535a
Patch0: %{name}-info.patch
Patch1: ac.patch
+Patch2: %{name}-link.patch
URL: http://www.gnu.org/software/gnuastro/
BuildRequires: autoconf >= 2.69
BuildRequires: automake
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
# regenerate for as-needed to work