Root/libnl-1/patches/dont-link-libnl-from-sysroot.patch

1Index: libnl-1.1/src/Makefile
2===================================================================
3--- libnl-1.1.orig/src/Makefile 2008-01-14 07:48:45.000000000 -0800
4+++ libnl-1.1/src/Makefile 2010-09-22 14:58:46.820826001 -0700
5@@ -13,7 +13,7 @@ ifeq ($(shell [ ! -r ../Makefile.opts ]
6     include ../Makefile.opts
7 endif
8 
9-LDFLAGS += -L../lib -lnl utils.o
10+LDFLAGS += ../lib/libnl.so utils.o
11 CIN := $(wildcard nl-*.c) $(wildcard genl-*.c) $(wildcard nf-*.c)
12 TOOLS := $(CIN:%.c=%)
13 
14Index: libnl-1.1/tests/Makefile
15===================================================================
16--- libnl-1.1.orig/tests/Makefile 2008-01-14 07:48:45.000000000 -0800
17+++ libnl-1.1/tests/Makefile 2010-09-22 14:58:46.820826001 -0700
18@@ -13,7 +13,7 @@ ifeq ($(shell [ ! -r ../Makefile.opts ]
19     include ../Makefile.opts
20 endif
21 
22-LDFLAGS += -L../lib -lnl ../src/utils.o
23+LDFLAGS += ../lib/libnl.so ../src/utils.o
24 CIN := $(wildcard test-*.c)
25 TOOLS := $(CIN:%.c=%)
26 
27

Archive Download this file



interactive