diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2025-06-30 21:35:24 +0200 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2025-07-02 22:31:15 +0200 |
commit | cc3f49392384fa02de9c754a3fec069aa24a4843 (patch) | |
tree | b6437c2c575b7fc6321e3ddc15ec1a8ad336f75c /dw/findtext.cc | |
parent | 2da3e913291c39bca3e1342161be6885ca48e333 (diff) |
Don't change CFLAGS or LDFLAGS for custom Mbed TLS
Adding the extra flags to search Mbed TLS in CFLAGS and LDFLAGS directly
inhibits AC_PROG_CC from injecting the usual -O2 and -g flags. Instead,
we add them to MBEDTLS_* set of variables which are only used to locate
Mbed TLS. Then we pass them to the Makefile via AC_SUBSTAC_SUBST().
We also move the LIBSSL_* flags to be early on the order of dillo_LDADD,
so that extra -L flags which can be injected from fltk-config or other
programs, don't accidentally point to /usr/lib or a similar location
where it could race with another installation of Mbed TLS.
This mechanism won't work for cases in which Mbed TLS has libraries
installed in a location other than the default search path, but works
for Arch Linux and Gentoo because the symlink them to the default search
path, even if they are installed in a different location.
Diffstat (limited to 'dw/findtext.cc')
0 files changed, 0 insertions, 0 deletions