[Build-common-hackers] Bug#651964: cdbs: class/langcore.mk doesn't set CPPFLAGS and LDFLAGS from dpkg-buildflags

Simon Ruderich simon at ruderich.org
Tue Dec 13 16:34:18 UTC 2011


Package: cdbs
Severity: important
Tags: patch

Hello,

While trying to build poppler with hardening flags I noticed that
CPPFLAGS and LDFLAGS were not set correctly. This is an important
problem as it causes several hardening flags (fortify source,
relro) to not get included in the build.

Adding the following lines to class/langcore.mk.in in line 57
where CFLAGS and CXXFLAGS are already set fixes the problem:

    CPPFLAGS += $(deb_cppflags)
    LDFLAGS += $(deb_ldflags)

Regards,
Simon

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.1.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash





More information about the Build-common-hackers mailing list