Skip to content

Honor the external definitions of CFLAGS, CXXFLAGS, and LDFLAGS#3301

Merged
PaulBoersma merged 2 commits into
praat:masterfrom
rlaboiss:honor-compilation-flags
Jul 15, 2026
Merged

Honor the external definitions of CFLAGS, CXXFLAGS, and LDFLAGS#3301
PaulBoersma merged 2 commits into
praat:masterfrom
rlaboiss:honor-compilation-flags

Conversation

@rlaboiss

@rlaboiss rlaboiss commented Jul 10, 2026

Copy link
Copy Markdown
Member

This issue arose in the context of building the Debian praat package. In Debian, some hardening options (obtained from dpkg-buildflags) must be included the CFLAGS and CXXFLAGS variables in the Makefile. This patch makes this possible by changing the assignments from := to +=.

Note that only the section for Linux has been changed. Similar changes for other OS' may be appropriate.

A second commit in this PR adds $(LDFLAGS) to the compilation command for the praat executable.

rlaboiss added 2 commits July 10, 2026 09:57
This issue arose in the context of building the Debian praat package. In
Debian, some hardening options (obtained from dpkg-buildflags) must be
included the CFLAGS and CXXFLAGS variables in the Makefile. This patch
makes this possible by changing the assignments from ":=" to "+=".

Note that only the section for Linux has been changed. Similar changes for
other OS' may be appropriate.
This fixes the warning hardening-no-relro of Lintian (Debian lint package
checker).
@rlaboiss rlaboiss changed the title Honor the external definitions of CFLAGS and CXXFLAGS Honor the external definitions of CFLAGS, CXXFLAGS, an LDFLAGS Jul 10, 2026
@rlaboiss rlaboiss changed the title Honor the external definitions of CFLAGS, CXXFLAGS, an LDFLAGS Honor the external definitions of CFLAGS, CXXFLAGS, and LDFLAGS Jul 10, 2026
@rlaboiss

Copy link
Copy Markdown
Member Author

The changes in the PR have been applied to the Debian package for praat, version 6.6.30+dfsg-1, uploaded to the unstable distribution.

@PaulBoersma
PaulBoersma merged commit 9dc3533 into praat:master Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants