File: fix-as-needed.patch

package info (click to toggle)
rrep 1.3.6-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,140 kB
  • sloc: ansic: 36,257; sh: 5,311; makefile: 23; sed: 16
file content (17 lines) | stat: -rw-r--r-- 834 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Reorder LDADD libraries
 The patch reorders the LDADD libraries to make the compiler aware of the
 needed libacl references.  GCC-9 uses the --as-needed flag by default which
 does not the detect the required references when using the old order.
Author: Arno Onken <asnelt@asnelt.org>
Bug-Debian: https://bugs.debian.org/925819
Index: rrep-1.3.6/src/Makefile.am
===================================================================
--- rrep-1.3.6.orig/src/Makefile.am
+++ rrep-1.3.6/src/Makefile.am
@@ -20,5 +20,5 @@ rrep_SOURCES = rrep.c messages.c bufferi
 noinst_HEADERS = bufferio.h messages.h pattern.h rrep.h
 
 AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\" -I$(top_builddir)/lib -I$(top_srcdir)/lib
-LDADD = $(LIB_ACL) $(LIBICONV) $(LIBINTL) ../lib/libgnu.a
+LDADD = ../lib/libgnu.a $(LIB_ACL) $(LIBICONV) $(LIBINTL)