hotplug2: get rid of the unnecessary reference to libdl as well
authorFelix Fietkau <nbd@openwrt.org>
Tue, 20 Oct 2009 20:59:40 +0000 (20:59 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 20 Oct 2009 20:59:40 +0000 (20:59 +0000)
SVN-Revision: 18106

package/hotplug2/patches/110-static_worker.patch

index 76471d59c0f1687e4d6487ec2984c5e245465308..453a52d5428c0761cbf355a48f8c2d778cb3cc56 100644 (file)
@@ -26,7 +26,7 @@
  DESTDIR=
  
  
-@@ -13,13 +30,15 @@ all: $(BINS)
+@@ -13,13 +30,16 @@ all: $(BINS)
  install:
        $(INSTALL_BIN) $(BINS) $(DESTDIR)/sbin/
  
 +  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 @@