https://bugs.kde.org/show_bug.cgi?id=505233

            Bug ID: 505233
           Summary: Build rules in memcheck apply CFLAGS after
                    customizations made by configure, leading to unwanted
                    configuration or errors
    Classification: Developer tools
           Product: valgrind
      Version First 3.25 GIT
       Reported In:
          Platform: Other
                OS: Other
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: memcheck
          Assignee: jsew...@acm.org
          Reporter: jk...@apache.org
  Target Milestone: ---

In an environment where CFLAGS is set by default to include
`-fstack-protector-strong`, a build of Valgrind 3.25.1 will fail because the
memcheck configure-generated build places $(CFLAGS) after
$(memcheck_amd64_linux_CFLAGS), causing stack protector to be enabled; for
example this excerpt from the generated Makefile in memcheck:

```
memcheck_amd64_linux-mc_main_asm.obj: mc_main_asm.c
    $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES)
$(memcheck_amd64_linux_CPPFLAGS) $(CPPFLAGS) $(memcheck_amd64_linux_CFLAGS)
$(CFLAGS) -MT memcheck_amd64_linux-mc_main_asm.obj -MD -MP -MF
$(DEPDIR)/memcheck_amd64_linux-mc_main_asm.Tpo -c -o
memcheck_amd64_linux-mc_main_asm.obj `if test -f 'mc_main_asm.c'; then
$(CYGPATH_W) 'mc_main_asm.c'; else $(CYGPATH_W) '$(srcdir)/mc_main_asm.c'; fi`
    $(AM_V_at)$(am__mv) $(DEPDIR)/memcheck_amd64_linux-mc_main_asm.Tpo
$(DEPDIR)/memcheck_amd64_linux-mc_main_asm.Po
```

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to