diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-10-20 20:59:40 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-10-20 20:59:40 +0000 |
commit | 3c635449d3bea9a2042b3e9a21586a98122b7eca (patch) | |
tree | 8150d6e0a80f91a38feede44a596ce253b4c358b /package/hotplug2/patches | |
parent | 4541b2dcf85d1f97680825ec61a3e17816e14a8b (diff) | |
download | upstream-3c635449d3bea9a2042b3e9a21586a98122b7eca.tar.gz upstream-3c635449d3bea9a2042b3e9a21586a98122b7eca.tar.bz2 upstream-3c635449d3bea9a2042b3e9a21586a98122b7eca.zip |
hotplug2: get rid of the unnecessary reference to libdl as well
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18106 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/hotplug2/patches')
-rw-r--r-- | package/hotplug2/patches/110-static_worker.patch | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/package/hotplug2/patches/110-static_worker.patch b/package/hotplug2/patches/110-static_worker.patch index 76471d59c0..453a52d542 100644 --- a/package/hotplug2/patches/110-static_worker.patch +++ b/package/hotplug2/patches/110-static_worker.patch @@ -26,7 +26,7 @@ DESTDIR= -@@ -13,13 +30,15 @@ all: $(BINS) +@@ -13,13 +30,16 @@ all: $(BINS) install: $(INSTALL_BIN) $(BINS) $(DESTDIR)/sbin/ @@ -46,23 +46,24 @@ + CFLAGS += -DSTATIC_WORKER=1 +else + CFLAGS += $(FPIC) ++ LDFLAGS += -ldl +endif + --- a/common.mak +++ b/common.mak -@@ -1,8 +1,11 @@ +@@ -1,7 +1,10 @@ # vim:set sw=8 nosta: -CFLAGS=-Os -Wall -g -fPIC +-LDFLAGS=-g -ldl +COPTS=-Os -Wall -g - LDFLAGS=-g -ldl - ++LDFLAGS=-g ++ +CFLAGS=$(COPTS) +FPIC=-fPIC -+ + INSTALL=install -c -m 644 INSTALL_BIN=install -c -m 755 - --- a/workers/loader.c +++ b/workers/loader.c @@ -1,5 +1,23 @@ |