diff --git a/adns-visibility.patch b/adns-visibility.patch new file mode 100644 index 0000000..baf58de --- /dev/null +++ b/adns-visibility.patch @@ -0,0 +1,49 @@ +--- configure.in.orig ++++ configure.in +@@ -252,7 +252,7 @@ SHLIBSONAME='$(SHLIBFORLINK).$(MAJOR)' + SHLIBFILE='$(SHLIBSONAME).$(MINOR)' + + SHLIBCC='$(CC) $(CFLAGS) -fpic' +-MKSHLIB_1='$(CC) $(LDFLAGS) -shared -Wl,-soname=$(SHLIBSONAME) -o' ++MKSHLIB_1='$(CC) $(LDFLAGS) -shared -Wl,-soname=$(SHLIBSONAME),-version-script=$(srcdir)/../adns.sym -o' + MKSHLIB_2='' + MKSHLIB_3='-lc' + +--- /dev/null ++++ adns.sym +@@ -0,0 +1,35 @@ ++{ ++ global: ++adns_afterselect; ++adns_beforepoll; ++adns_beforeselect; ++adns_cancel; ++adns_check; ++adns_checkconsistency; ++adns_errabbrev; ++adns_errtypeabbrev; ++adns_finish; ++adns_firsttimeout; ++adns_forallqueries_begin; ++adns_forallqueries_next; ++adns_getaddrinfo; ++adns_globalsystemfailure; ++adns_init; ++adns_init_logfn; ++adns_init_strcfg; ++adns_processany; ++adns_processexceptional; ++adns_processreadable; ++adns_processtimeouts; ++adns_processwriteable; ++adns_rr_info; ++adns_strerror; ++adns_submit; ++adns_submit_reverse; ++adns_submit_reverse_any; ++adns_synchronous; ++adns_wait; ++adns_wait_poll; ++ ++local: *; ++}; diff --git a/adns.changes b/adns.changes index 3bc24b7..d1ade58 100644 --- a/adns.changes +++ b/adns.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Nov 5 20:35:16 UTC 2010 - cristian.rodriguez@opensuse.org + +- export only public symbols + ------------------------------------------------------------------- Fri Jan 16 23:00:59 CET 2009 - crrodriguez@suse.de diff --git a/adns.spec b/adns.spec index 694bec5..08da965 100644 --- a/adns.spec +++ b/adns.spec @@ -31,6 +31,7 @@ Source1: README.SUSE Patch0: %{name}-%{version}-destdir.patch Patch1: %{name}-%{version}-configure.patch Patch2: %{name}-%{version}-ipv6.patch +Patch3: adns-visibility.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -81,6 +82,7 @@ Authors: %patch0 %patch1 %patch2 +%patch3 cp %{S:1} . %build