]> git.ozlabs.org Git - ppp.git/commitdiff
pppd: Fix cross-compilation using Clang (#253)
author10ne1 <adi@adirat.com>
Sun, 14 Mar 2021 23:11:35 +0000 (01:11 +0200)
committerGitHub <noreply@github.com>
Sun, 14 Mar 2021 23:11:35 +0000 (10:11 +1100)
Clang does not have the --print-sysroot option so the shell
snippet silently fails leading to "-I/usr/include/openssl".
Thankfully systems like Gentoo/portage or Yocto/bitbake enable
sysroot poisoning precisely to catch these kinds of bugs.

There is only one user of this non-standard CFLAG include in
pppcrypt.h, so make it consistent with the rest of the sources
(eg. see eap-tls.[h|c] openssl/* includes) and drop the fragile
sysroot hackery.

Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com>

No differences found