File: gcc9.patch

package info (click to toggle)
wireless-tools 30~pre9-19
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,660 kB
  • sloc: ansic: 13,804; sh: 209; makefile: 154
file content (15 lines) | stat: -rw-r--r-- 498 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Author: Reiner Herrmann <reiner@reiner-h.de>
Description: Fix build with gcc9 by moving linked libraries to the end
Bug-Debian: https://bugs.debian.org/925857

--- a/Makefile
+++ b/Makefile
@@ -150,7 +150,7 @@
 
 # Compilation of the dynamic library
 $(DYNAMIC): $(OBJS:.o=.so)
-	$(CC) -shared -o $@ -Wl,-soname,$@ $(STRIPFLAGS) $(LIBS) $(LDFLAGS) -lc $^
+	$(CC) -shared -o $@ -Wl,-soname,$@ $(STRIPFLAGS) $(LDFLAGS) $^ -lc $(LIBS)
 
 # Compilation of the static library
 $(STATIC): $(OBJS:.o=.so)