File: 10_fix-linking.patch

package info (click to toggle)
netmate 0.2.0-13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 296 kB
  • sloc: ansic: 2,524; makefile: 32
file content (17 lines) | stat: -rw-r--r-- 690 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: fix linking to stop FTBFS with --as-needed.
Author: Jackson Doak <noskcaj@ubuntu.com>
Last-Update: 2014-01-10
Forwarded: https://github.com/Rup0rt/netmate/issues/1
Index: netmate-0.2.0/Makefile
===================================================================
--- netmate-0.2.0.orig/Makefile
+++ netmate-0.2.0/Makefile
@@ -15,7 +15,7 @@ GTK_LIBS = $(shell pkg-config --libs gtk
 
 all: netmate.c layer2.h layer3.h layer4.h
 	gcc $(CPPFLAGS) $(GTK_CFLAGS) $(CFLAGS) -c netmate.c -o netmate.o
-	gcc $(GTK_LIBS) -lpcap $(LDFLAGS) netmate.o -o netmate
+	gcc $(LDFLAGS) netmate.o $(GTK_LIBS)  -lpcap -o netmate
 
 install:
 	install -D -m 755 netmate $(DESTDIR)/$(BINDIR)/netmate