]> git.pld-linux.org Git - packages/gnuastro.git/commitdiff
- added link patch (use LIBADD instead of LDFLAGS for libraries) auto/th/gnuastro-0.17-1
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 27 Jun 2022 16:23:10 +0000 (18:23 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Mon, 27 Jun 2022 16:23:10 +0000 (18:23 +0200)
gnuastro-link.patch [new file with mode: 0644]
gnuastro.spec

diff --git a/gnuastro-link.patch b/gnuastro-link.patch
new file mode 100644 (file)
index 0000000..1157d2e
--- /dev/null
@@ -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)
index 6008534111aece7b099544cf16821d3aa40e12c0..0c5282f659df0040f9d1359ee650291b8a3c9e4e 100644 (file)
@@ -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
This page took 0.147359 seconds and 4 git commands to generate.