public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] nscd: cleanup obsolete _FORTIFY_SOURCE setting
@ 2023-07-25 20:04 Sam James
  2023-07-28 19:02 ` Siddhesh Poyarekar
  0 siblings, 1 reply; 2+ messages in thread
From: Sam James @ 2023-07-25 20:04 UTC (permalink / raw)
  To: libc-alpha; +Cc: Sam James

This was added in 233399bce2e79e5af3b344782e9943d5f1a9cdcb just for warn_if_unused
warnings rather than anything substantial.

Now that we have a proper configure argument for F_S (--enable-fortify-source),
just drop this entirely, to avoid conflicting with e.g. detected --enable-fortify-source
finding F_S=3, then nscd's Makefile setting F_S=2, resulting in a build-failure
because of the redefinition.

Signed-off-by: Sam James <sam@gentoo.org>
---
 nscd/Makefile | 2 --
 1 file changed, 2 deletions(-)

diff --git a/nscd/Makefile b/nscd/Makefile
index c2e70d33b7..2a0489f4cf 100644
--- a/nscd/Makefile
+++ b/nscd/Makefile
@@ -79,8 +79,6 @@ CFLAGS-nscd_gethst_r.c += -fexceptions
 CFLAGS-nscd_getai.c += -fexceptions
 CFLAGS-nscd_initgroups.c += -fexceptions
 
-CPPFLAGS-nscd += -D_FORTIFY_SOURCE=2
-
 ifeq (yesyes,$(have-fpie)$(build-shared))
 CFLAGS-nscd += $(pie-ccflag)
 endif
-- 
2.41.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] nscd: cleanup obsolete _FORTIFY_SOURCE setting
  2023-07-25 20:04 [PATCH] nscd: cleanup obsolete _FORTIFY_SOURCE setting Sam James
@ 2023-07-28 19:02 ` Siddhesh Poyarekar
  0 siblings, 0 replies; 2+ messages in thread
From: Siddhesh Poyarekar @ 2023-07-28 19:02 UTC (permalink / raw)
  To: Sam James, libc-alpha



On 2023-07-25 16:04, Sam James via Libc-alpha wrote:
> This was added in 233399bce2e79e5af3b344782e9943d5f1a9cdcb just for warn_if_unused
> warnings rather than anything substantial.
> 
> Now that we have a proper configure argument for F_S (--enable-fortify-source),
> just drop this entirely, to avoid conflicting with e.g. detected --enable-fortify-source
> finding F_S=3, then nscd's Makefile setting F_S=2, resulting in a build-failure
> because of the redefinition.
> 
> Signed-off-by: Sam James <sam@gentoo.org>
> ---

LGTM.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>

>   nscd/Makefile | 2 --
>   1 file changed, 2 deletions(-)
> 
> diff --git a/nscd/Makefile b/nscd/Makefile
> index c2e70d33b7..2a0489f4cf 100644
> --- a/nscd/Makefile
> +++ b/nscd/Makefile
> @@ -79,8 +79,6 @@ CFLAGS-nscd_gethst_r.c += -fexceptions
>   CFLAGS-nscd_getai.c += -fexceptions
>   CFLAGS-nscd_initgroups.c += -fexceptions
>   
> -CPPFLAGS-nscd += -D_FORTIFY_SOURCE=2
> -
>   ifeq (yesyes,$(have-fpie)$(build-shared))
>   CFLAGS-nscd += $(pie-ccflag)
>   endif

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-07-28 19:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-25 20:04 [PATCH] nscd: cleanup obsolete _FORTIFY_SOURCE setting Sam James
2023-07-28 19:02 ` Siddhesh Poyarekar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).