mirror of
https://github.com/topjohnwu/ndk-busybox.git
synced 2024-11-26 21:20:29 +00:00
adb9e131ce
Using bionic's resolver functions does not allow changing the dns server. Use dietlibc's resolver code instead (see package libres-devel) Patch by Tias Guns <tias@ulyssis.org>, based on 'dietlibc-resolver' and 'libres-0.32-1' by Dan Drown http://dan.drown.org/android/src/busybox/ http://dan.drown.org/android/src/libres/ Rebased for busybox 1.29.1 by Chris Renshaw <osm0sis@outlook.com>
33 lines
545 B
Makefile
33 lines
545 B
Makefile
CC=agcc
|
|
|
|
OBJECTS=getaddrinfo.o
|
|
OBJECTS+=gethostbyname2_r.o
|
|
OBJECTS+=dnscruft.o
|
|
OBJECTS+=dnscruft2.o
|
|
OBJECTS+=dnscruft3.o
|
|
OBJECTS+=h_errno.o
|
|
OBJECTS+=res_query.o
|
|
OBJECTS+=res_mkquery.o
|
|
OBJECTS+=gai_strerror.o
|
|
OBJECTS+=freeaddrinfo.o
|
|
OBJECTS+=res_init.o
|
|
OBJECTS+=dn_expand.o
|
|
|
|
CFLAGS+=-Wall
|
|
|
|
all: libres.a test
|
|
clean:
|
|
rm -f $(OBJECTS) libres.a test.o test
|
|
|
|
test: libres.a test.o
|
|
$(CC) $(CFLAGS) -o test test.o libres.a
|
|
|
|
libres.a: $(OBJECTS)
|
|
ar r libres.a $(OBJECTS)
|
|
ranlib libres.a
|
|
|
|
.PHONY: all clean
|
|
|
|
%.o: %.c dietdns.h
|
|
$(CC) $(CFLAGS) -c $<
|