summaryrefslogtreecommitdiff
path: root/resolv/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'resolv/Makefile')
-rw-r--r--resolv/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/resolv/Makefile b/resolv/Makefile
index 9df98fab5a..962dbca0b9 100644
--- a/resolv/Makefile
+++ b/resolv/Makefile
@@ -12,9 +12,9 @@
# Library General Public License for more details.
# You should have received a copy of the GNU Library General Public
-# License along with the GNU C Library; see the file COPYING.LIB. If
-# not, write to the Free Software Foundation, Inc., 675 Mass Ave,
-# Cambridge, MA 02139, USA.
+# License along with the GNU C Library; see the file COPYING.LIB. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
#
# Sub-makefile for resolv portion of the library.
@@ -43,3 +43,8 @@ CPPFLAGS += -Dgethostbyname=res_gethostbyname \
# The BIND code elicits some harmless warnings.
+cflags += -Wno-strict-prototypes -Wno-comment -Wno-write-strings
+
+# Depend on libc.so so a DT_NEEDED is generated in the shared objects.
+# This ensures they will load libc.so for needed symbols if loaded by
+# a statically-linked program that hasn't already loaded it.
+$(objpfx)libresolv.so: $(common-objpfx)libc.so