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
|