diff --git a/src/Makefile.in b/src/Makefile.in index 6d1992a9..b0d66e3a 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -106,18 +106,18 @@ uninstall: if test $(have_libev) = 1; then $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(EXTENSION_LIBEV_LIB) ; fi libgetdns_ext_event.la: libgetdns.la extension/libevent.lo - $(LIBTOOL) --tag=CC --mode=link $(CC) $(CFLAGS) -o $@ extension/libevent.lo ./.libs/libgetdns.la $(EXTENSION_LIBEVENT_LDFLAGS) $(EXTENSION_LIBEVENT_EXT_LIBS) -rpath $(libdir) -version-info $(libversion) -no-undefined -release $(version) -export-symbols $(srcdir)/SYMFILE + $(LIBTOOL) --tag=CC --mode=link $(CC) $(CFLAGS) -o $@ extension/libevent.lo ./.libs/libgetdns.la $(EXTENSION_LIBEVENT_LDFLAGS) $(EXTENSION_LIBEVENT_EXT_LIBS) -rpath $(libdir) -version-info $(libversion) -no-undefined -release $(version) -export-symbols $(srcdir)/extension/libevent.symfile libgetdns_ext_uv.la: libgetdns.la extension/libuv.lo - $(LIBTOOL) --tag=CC --mode=link $(CC) $(CFLAGS) -o $@ extension/libuv.lo ./.libs/libgetdns.la $(EXTENSION_LIBUV_LDFLAGS) $(EXTENSION_LIBUV_EXT_LIBS) -rpath $(libdir) -version-info $(libversion) -no-undefined -release $(version) -export-symbols $(srcdir)/SYMFILE + $(LIBTOOL) --tag=CC --mode=link $(CC) $(CFLAGS) -o $@ extension/libuv.lo ./.libs/libgetdns.la $(EXTENSION_LIBUV_LDFLAGS) $(EXTENSION_LIBUV_EXT_LIBS) -rpath $(libdir) -version-info $(libversion) -no-undefined -release $(version) -export-symbols $(srcdir)/extension/libuv.symfile libgetdns_ext_ev.la: libgetdns.la extension/libev.lo - $(LIBTOOL) --tag=CC --mode=link $(CC) $(CFLAGS) -o $@ extension/libev.lo ./.libs/libgetdns.la $(EXTENSION_LIBEV_LDFLAGS) $(EXTENSION_LIBEV_EXT_LIBS) -rpath $(libdir) -version-info $(libversion) -no-undefined -release $(version) -export-symbols $(srcdir)/SYMFILE + $(LIBTOOL) --tag=CC --mode=link $(CC) $(CFLAGS) -o $@ extension/libev.lo ./.libs/libgetdns.la $(EXTENSION_LIBEV_LDFLAGS) $(EXTENSION_LIBEV_EXT_LIBS) -rpath $(libdir) -version-info $(libversion) -no-undefined -release $(version) -export-symbols $(srcdir)/extension/libev.symfile libgetdns.la: $(GETDNS_OBJ) - $(LIBTOOL) --tag=CC --mode=link $(CC) $(CFLAGS) -o $@ $(GETDNS_OBJ) $(LDFLAGS) -rpath $(libdir) -version-info $(libversion) -no-undefined -release $(version) -export-symbols $(srcdir)/SYMFILE + $(LIBTOOL) --tag=CC --mode=link $(CC) $(CFLAGS) -o $@ $(GETDNS_OBJ) $(LDFLAGS) -rpath $(libdir) -version-info $(libversion) -no-undefined -release $(version) -export-symbols $(srcdir)/libgetdns.symfile test: FORCE diff --git a/src/extension/libev.symbols b/src/extension/libev.symbols new file mode 100644 index 00000000..80ac170e --- /dev/null +++ b/src/extension/libev.symbols @@ -0,0 +1 @@ +getdns_extension_set_libev_loop diff --git a/src/extension/libevent.symbols b/src/extension/libevent.symbols new file mode 100644 index 00000000..e3aa1935 --- /dev/null +++ b/src/extension/libevent.symbols @@ -0,0 +1 @@ +getdns_extension_set_libevent_base diff --git a/src/extension/libuv.symbols b/src/extension/libuv.symbols new file mode 100644 index 00000000..3da0338b --- /dev/null +++ b/src/extension/libuv.symbols @@ -0,0 +1 @@ +getdns_extension_set_libuv_loop diff --git a/src/SYMFILE b/src/libgetdns.symbols similarity index 81% rename from src/SYMFILE rename to src/libgetdns.symbols index adcb0f33..a3e9d447 100644 --- a/src/SYMFILE +++ b/src/libgetdns.symbols @@ -1,3 +1,20 @@ +getdns_context_set_namespaces +getdns_context_set_namespaces +getdns_context_set_namespaces +getdns_context_set_namespaces +getdns_context_set_namespaces +getdns_context_set_resolution_type +getdns_context_set_resolution_type +getdns_context_set_follow_redirects +getdns_context_set_follow_redirects +getdns_context_set_dns_transport +getdns_context_set_dns_transport +getdns_context_set_dns_transport +getdns_context_set_dns_transport +getdns_context_set_append_name +getdns_context_set_append_name +getdns_context_set_append_name +getdns_context_set_append_name getdns_strerror getdns_list_get_length getdns_list_get_data_type diff --git a/src/mk-SYMFILE.sh b/src/mk-SYMFILE.sh deleted file mode 100755 index d7f5b2b2..00000000 --- a/src/mk-SYMFILE.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -cat getdns/getdns.h.in getdns/*.h | grep 'getdns_[0-9a-zA-Z_]*(' \ -| grep -v '^#' | sed -e 's/(.*$//g' -e 's/^.*getdns_/getdns_/g' > SYMFILE - diff --git a/src/mk-symfiles.sh b/src/mk-symfiles.sh new file mode 100755 index 00000000..b1e4f6e3 --- /dev/null +++ b/src/mk-symfiles.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +write_symbols() { + OUTPUT=$1 + shift + grep 'getdns_[0-9a-zA-Z_]*(' $* | grep -v '^#' \ + | sed -e 's/(.*$//g' -e 's/^.*getdns_/getdns_/g' > $OUTPUT +} + +write_symbols libgetdns.symbols getdns/getdns.h.in getdns/getdns_extra.h +write_symbols extension/libevent.symbols getdns/getdns_ext_libevent.h +write_symbols extension/libev.symbols getdns/getdns_ext_libev.h +write_symbols extension/libuv.symbols getdns/getdns_ext_libuv.h +