mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 03:09:08 +08:00
hotplug2: get rid of the unnecessary reference to libdl as well
SVN-Revision: 18106
This commit is contained in:
parent
902aecf9e1
commit
73723393f9
@ -26,7 +26,7 @@
|
|||||||
DESTDIR=
|
DESTDIR=
|
||||||
|
|
||||||
|
|
||||||
@@ -13,13 +30,15 @@ all: $(BINS)
|
@@ -13,13 +30,16 @@ all: $(BINS)
|
||||||
install:
|
install:
|
||||||
$(INSTALL_BIN) $(BINS) $(DESTDIR)/sbin/
|
$(INSTALL_BIN) $(BINS) $(DESTDIR)/sbin/
|
||||||
|
|
||||||
@ -46,23 +46,24 @@
|
|||||||
+ CFLAGS += -DSTATIC_WORKER=1
|
+ CFLAGS += -DSTATIC_WORKER=1
|
||||||
+else
|
+else
|
||||||
+ CFLAGS += $(FPIC)
|
+ CFLAGS += $(FPIC)
|
||||||
|
+ LDFLAGS += -ldl
|
||||||
+endif
|
+endif
|
||||||
+
|
+
|
||||||
--- a/common.mak
|
--- a/common.mak
|
||||||
+++ b/common.mak
|
+++ b/common.mak
|
||||||
@@ -1,8 +1,11 @@
|
@@ -1,7 +1,10 @@
|
||||||
# vim:set sw=8 nosta:
|
# vim:set sw=8 nosta:
|
||||||
|
|
||||||
-CFLAGS=-Os -Wall -g -fPIC
|
-CFLAGS=-Os -Wall -g -fPIC
|
||||||
|
-LDFLAGS=-g -ldl
|
||||||
+COPTS=-Os -Wall -g
|
+COPTS=-Os -Wall -g
|
||||||
LDFLAGS=-g -ldl
|
+LDFLAGS=-g
|
||||||
|
+
|
||||||
+CFLAGS=$(COPTS)
|
+CFLAGS=$(COPTS)
|
||||||
+FPIC=-fPIC
|
+FPIC=-fPIC
|
||||||
+
|
|
||||||
INSTALL=install -c -m 644
|
INSTALL=install -c -m 644
|
||||||
INSTALL_BIN=install -c -m 755
|
INSTALL_BIN=install -c -m 755
|
||||||
|
|
||||||
--- a/workers/loader.c
|
--- a/workers/loader.c
|
||||||
+++ b/workers/loader.c
|
+++ b/workers/loader.c
|
||||||
@@ -1,5 +1,23 @@
|
@@ -1,5 +1,23 @@
|
||||||
|
Loading…
x
Reference in New Issue
Block a user