diff --git a/trunk/user/dnsmasq/Makefile b/trunk/user/dnsmasq/Makefile index 1bf0abf0132..f74fd5a1390 100644 --- a/trunk/user/dnsmasq/Makefile +++ b/trunk/user/dnsmasq/Makefile @@ -19,6 +19,4 @@ clean: rm -f dnsmasq romfs: - cp $(SRC_NAME)/src/dnsmasq . - $(STRIP) dnsmasq - $(ROMFSINST) /usr/sbin/dnsmasq + $(ROMFSINST) $(SRC_NAME)/src/dnsmasq /usr/sbin/dnsmasq diff --git a/trunk/user/dnsmasq/dnsmasq-2.8x/Makefile b/trunk/user/dnsmasq/dnsmasq-2.8x/Makefile index f6feb9758be..6a3049b72f1 100644 --- a/trunk/user/dnsmasq/dnsmasq-2.8x/Makefile +++ b/trunk/user/dnsmasq/dnsmasq-2.8x/Makefile @@ -18,14 +18,14 @@ # Variables you may well want to override. -PREFIX = /usr/local +PREFIX = /usr BINDIR = $(PREFIX)/sbin MANDIR = $(PREFIX)/share/man LOCALEDIR = $(PREFIX)/share/locale BUILDDIR = $(SRC) DESTDIR = -CFLAGS += -Wall -W -O2 -LDFLAGS += +CFLAGS += -Wall -W -O2 -ffunction-sections -fdata-sections -fvisibility=hidden +LDFLAGS += -Wl,--gc-sections COPTS = RPM_OPT_FLAGS = LIBS =