openssl: rework CFLAGS handling on compilation
authorChristian Marangi <[email protected]>
Wed, 5 Nov 2025 18:06:18 +0000 (19:06 +0100)
committerChristian Marangi <[email protected]>
Thu, 6 Nov 2025 09:12:05 +0000 (10:12 +0100)
commit2703bdda0252cdf6a39635347eb8c22985b2a320
tree583fb51b09440eabf9674352853b13e950b1b6f0
parent7670addb077d7556a5603f0b26e2bad1b052ae84
openssl: rework CFLAGS handling on compilation

This mainly improve the CFLAGS handling on compilation of OpenSSL.

The CFLAGS are currently passed 2 times generating compilation warning
due to -fhonour-copts passed 2 times.

This can be improved by passing the CFLAGS as env to the OpenSSL
Configure tool.

For consistency we do the same for CPPFLAGS and LDFLAGS.

This permits to drop redundant flags in the Compile phase and from the
.conf file.

Link: https://github.com/openwrt/openwrt/pull/20665
Signed-off-by: Christian Marangi <[email protected]>
package/libs/openssl/Makefile
package/libs/openssl/patches/110-openwrt_targets.patch