aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Android.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/Android.mk b/Android.mk
index 2a41dd5..36ab085 100644
--- a/Android.mk
+++ b/Android.mk
@@ -35,7 +35,6 @@ LOCAL_SRC_FILES := \
dhcp.c \
ipv4.c \
ipv4ll.c \
- script-stub.c \
ifaddrs.c \
crypt/md5.c \
crypt/hmac_md5.c \
@@ -47,6 +46,12 @@ LOCAL_SRC_FILES := \
# Always support IPv4.
LOCAL_CFLAGS += -DINET
+ifeq ($(DHCPCD_USE_SCRIPT), yes)
+LOCAL_SRC_FILES += script.c
+else
+LOCAL_SRC_FILES += script-stub.c
+endif
+
LOCAL_CFLAGS += -D_BSD_SOURCE
ifeq ($(DHCPCD_USE_IPV6), yes)