about summary refs log tree commit diff
path: root/resolv
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-08-17 21:36:23 -0400
committerUlrich Drepper <drepper@gmail.com>2011-08-17 21:36:23 -0400
commit44f0a71e58c854d6554a31cd1c3962926b49ee90 (patch)
tree23d85b9f463a25eda601c405cf6276c13e2ccb83 /resolv
parent8de79a248cc1a4148e1e826ed416bb6faee4857b (diff)
downloadglibc-44f0a71e58c854d6554a31cd1c3962926b49ee90.tar.gz
glibc-44f0a71e58c854d6554a31cd1c3962926b49ee90.tar.xz
glibc-44f0a71e58c854d6554a31cd1c3962926b49ee90.zip
Add rules to build libresolv with SSP flags
Diffstat (limited to 'resolv')
-rw-r--r--resolv/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/resolv/Makefile b/resolv/Makefile
index 42e3505646..ec3788faeb 100644
--- a/resolv/Makefile
+++ b/resolv/Makefile
@@ -76,6 +76,9 @@ CPPFLAGS += -Dgethostbyname=res_gethostbyname \
 	    -Dgetnetbyname=res_getnetbyname \
 	    -Dgetnetbyaddr=res_getnetbyaddr
 
+ifeq (yes,$(have-ssp))
+CFLAGS-libresolv += -fstack-protector
+endif
 CFLAGS-res_hconf.c = -fexceptions
 
 # The BIND code elicits some harmless warnings.