SwordArMor-gentoo-overlay/net-dialup/ppp/files/ppp-2.4.9-fix-openssl-sysroot-clang.patch
2024-06-02 08:07:31 +02:00

15 lines
377 B
Diff

https://bugs.gentoo.org/831305
Upstream git has merged autotoolsification PR so no need for this.
--- a/pppd/Makefile.linux
+++ b/pppd/Makefile.linux
@@ -155,7 +155,7 @@ endif
ifdef NEEDDES
ifndef USE_CRYPT
-CFLAGS += -I$(shell $(CC) --print-sysroot)/usr/include/openssl
+CFLAGS += -I$(INSTROOT)/usr/include/openssl
NEEDCRYPTOLIB = y
else
CFLAGS += -DUSE_CRYPT=1