mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 03:10:05 +00:00
Add rules to build libresolv with SSP flags
This commit is contained in:
parent
8de79a248c
commit
44f0a71e58
@ -1,3 +1,8 @@
|
|||||||
|
2011-08-17 Ulrich Drepper <drepper@gmail.com>
|
||||||
|
|
||||||
|
* Makeconfig (override CFLAGS): Add library-specific CFLAGS.
|
||||||
|
* resolv/Makefile: Define CFLAGS-libresolv.
|
||||||
|
|
||||||
2011-08-17 Andreas Schwab <schwab@redhat.com>
|
2011-08-17 Andreas Schwab <schwab@redhat.com>
|
||||||
|
|
||||||
* nss/makedb.c (compute_tables): Make variables used in nested
|
* nss/makedb.c (compute_tables): Make variables used in nested
|
||||||
@ -18,7 +23,7 @@
|
|||||||
specifies first scope to show.
|
specifies first scope to show.
|
||||||
(dl_open_worker): Update callers. Move printing scope of new
|
(dl_open_worker): Update callers. Move printing scope of new
|
||||||
object to before the relocation.
|
object to before the relocation.
|
||||||
* rtld.c (dl_main): Update _dl_show_scope call.
|
* elf/rtld.c (dl_main): Update _dl_show_scope call.
|
||||||
* sysdeps/generic/ldsodefs.h: Update declaration.
|
* sysdeps/generic/ldsodefs.h: Update declaration.
|
||||||
|
|
||||||
* elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
|
* elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
|
||||||
@ -56,7 +61,7 @@
|
|||||||
|
|
||||||
2011-08-13 Ulrich Drepper <drepper@gmail.com>
|
2011-08-13 Ulrich Drepper <drepper@gmail.com>
|
||||||
|
|
||||||
* elf/dl-open.c: Rename show_scope to _dl_schow_scope and export.
|
* elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
|
||||||
(dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
|
(dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
|
||||||
* elf/rtld.c (dl_main): Set l_name of vDSO.
|
* elf/rtld.c (dl_main): Set l_name of vDSO.
|
||||||
Call _dl_show_scope when DL_DEBUG_SCOPES.
|
Call _dl_show_scope when DL_DEBUG_SCOPES.
|
||||||
|
@ -708,7 +708,9 @@ CPPFLAGS = $($(subdir)-CPPFLAGS) $(+includes) $(defines) \
|
|||||||
override CFLAGS = -std=gnu99 $(gnu89-inline-CFLAGS) \
|
override CFLAGS = -std=gnu99 $(gnu89-inline-CFLAGS) \
|
||||||
$(filter-out %frame-pointer,$(+cflags)) $(+gccwarn-c) \
|
$(filter-out %frame-pointer,$(+cflags)) $(+gccwarn-c) \
|
||||||
$(sysdep-CFLAGS) $(CFLAGS-$(suffix $@)) $(CFLAGS-$(<F)) \
|
$(sysdep-CFLAGS) $(CFLAGS-$(suffix $@)) $(CFLAGS-$(<F)) \
|
||||||
$(CFLAGS-$(@F))
|
$(CFLAGS-$(@F)) \
|
||||||
|
$(foreach lib,$(libof-$(basename $(@F))) \
|
||||||
|
$(libof-$(<F)) $(libof-$(@F)),$(CFLAGS-$(lib)))
|
||||||
override CXXFLAGS = $(c++-sysincludes) \
|
override CXXFLAGS = $(c++-sysincludes) \
|
||||||
$(filter-out %frame-pointer,$(+cflags)) $(sysdep-CFLAGS) \
|
$(filter-out %frame-pointer,$(+cflags)) $(sysdep-CFLAGS) \
|
||||||
$(CFLAGS-$(suffix $@)) $(CFLAGS-$(<F)) $(CFLAGS-$(@F))
|
$(CFLAGS-$(suffix $@)) $(CFLAGS-$(<F)) $(CFLAGS-$(@F))
|
||||||
|
@ -76,6 +76,9 @@ CPPFLAGS += -Dgethostbyname=res_gethostbyname \
|
|||||||
-Dgetnetbyname=res_getnetbyname \
|
-Dgetnetbyname=res_getnetbyname \
|
||||||
-Dgetnetbyaddr=res_getnetbyaddr
|
-Dgetnetbyaddr=res_getnetbyaddr
|
||||||
|
|
||||||
|
ifeq (yes,$(have-ssp))
|
||||||
|
CFLAGS-libresolv += -fstack-protector
|
||||||
|
endif
|
||||||
CFLAGS-res_hconf.c = -fexceptions
|
CFLAGS-res_hconf.c = -fexceptions
|
||||||
|
|
||||||
# The BIND code elicits some harmless warnings.
|
# The BIND code elicits some harmless warnings.
|
||||||
|
Loading…
Reference in New Issue
Block a user