]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
curl: don't enable debug builds
authorRoss Burton <ross.burton@arm.com>
Wed, 11 Jan 2023 14:17:53 +0000 (14:17 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 12 Jan 2023 23:07:39 +0000 (23:07 +0000)
commit3ed3b2ffeeaa5d888f77dd30cb8cd81d3275398a
treed6a78d940eb8cdea245084be19c847c4bcfbc025
parent76f1e8c9f8306ed0f0db42dd7a3c7efce82108ce
curl: don't enable debug builds

In oe-core 27824261 --enable-debug was added to the configure arguments
to turn on debugging symbols.  However, enabling debug mode does more
than turn on debugging symbols and introduces some codepaths that can be
controlled with environment variables.  Bluntly, the curl maintainer
says that --enable-debug should not be used in production:

https://curl.se/mail/lib-2023-01/0039.html

I did a build and verified that the curl-dbg package doesn't massively
shrink, so the debug symbols are still being built.

Remove the debug options and hide them behind a PACKAGECONFIG, with a
comment that it should not be used in production.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/curl/curl_7.87.0.bb