commit 91c6241e85420072113915c91c5377fe28dc008a
Author: Jakub Bogusz <[email protected]>
Date:   Mon Jun 27 18:23:10 2022 +0200

    - added link patch (use LIBADD instead of LDFLAGS for libraries)

 gnuastro-link.patch | 14 ++++++++++++++
 gnuastro.spec       |  2 ++
 2 files changed, 16 insertions(+)
---
diff --git a/gnuastro.spec b/gnuastro.spec
index 6008534..0c5282f 100644
--- a/gnuastro.spec
+++ b/gnuastro.spec
@@ -16,6 +16,7 @@ Source0:      
https://ftp.gnu.org/gnu/gnuastro/%{name}-%{version}.tar.lz
 # 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
@@ -103,6 +104,7 @@ Bashowe uzupełnianie składni poleceń gnuastro.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 # regenerate for as-needed to work
diff --git a/gnuastro-link.patch b/gnuastro-link.patch
new file mode 100644
index 0000000..1157d2e
--- /dev/null
+++ b/gnuastro-link.patch
@@ -0,0 +1,14 @@
+--- 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)
+ 
+ 
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gnuastro.git/commitdiff/91c6241e85420072113915c91c5377fe28dc008a

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to