Hello,

Thomas Stewart, le jeu. 06 févr. 2020 15:21:16 +0000, a ecrit:
> CPPFLAGS missing (-D_FORTIFY_SOURCE=2): libtool: link: (cd .libs && gcc -g 
> -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wall -c -fno-builtin "w1retapS.c")

"me too" with the speech-dispatcher package.

https://salsa.debian.org/tts-team/speech-dispatcher/-/jobs/1295146

CPPFLAGS missing (-D_FORTIFY_SOURCE=2): libtool: link: (cd .libs && gcc -g -O2 
-fdebug-prefix-map=/builds/tts-team/speech-dispatcher/debian/output/source_dir=.
 -fstack-protector-strong -Wformat -Werror=format-security -c -fno-builtin 
"sd_dummyS.c")

> However looking at the build log snippet[0] the full command is actually
> a call to libtool in link mode. This libtool invocation generates a new
> S.c file to generate dlsyms information. Looking at the internals of a
> generated libtool[1], it's basing the gcc args on LTCFLAGS.
> 
> When libtool is generated it bases its LTCFLAGS from CFLAGS[2]. Looking
> at the dpkg-buildflags hardening the -D_FORTIFY_SOURCE=2 flag is for
> CPPFLAGS rather than CFLAGS[3].

In the debian packaging we don't really have control over the LTCFLAGS
definition, so we can't really fix it there. We'd thus need either blhc
to ignore these libtool-related builds, or libtool to be patched to
include CPPFLAGS in LTCFLAGS.

Samuel

Reply via email to