]> git.ozlabs.org Git - ppp.git/commit
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)
commit24d80561dc54f67053a35b7c6a5c414f727e64d8
treeae457331970985b07c2ec6b8eeadfef08eeb5afe
parenta4781b380161f44032af5442c0c12dc68413504c
pppd: Fix cross-compilation using Clang (#253)

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>
pppd/Makefile.linux
pppd/pppcrypt.h