1*4882a593SmuzhiyunFrom 11dc017e902397c452331425eb6101b3315572fa Mon Sep 17 00:00:00 2001 2*4882a593SmuzhiyunFrom: Fabrice Fontaine <fontaine.fabrice@gmail.com> 3*4882a593SmuzhiyunDate: Sun, 24 Jan 2021 10:59:31 +0100 4*4882a593SmuzhiyunSubject: [PATCH] Makefile.PL: fix cross-compilation with gdlib.pc 5*4882a593Smuzhiyun 6*4882a593SmuzhiyunCross-compilation will fail if gdlib.pc does not contain any cflags. 7*4882a593SmuzhiyunIndeed, if cflags is empty, Makefile.PL will use the default value for 8*4882a593SmuzhiyunINC (i.e. -I/usr/include -I/usr/include/gd) 9*4882a593Smuzhiyun 10*4882a593SmuzhiyunIt should be noted that gdlib-config has been dropped from gd since 11*4882a593Smuzhiyunversion 2.3.0 12*4882a593Smuzhiyun 13*4882a593SmuzhiyunSigned-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> 14*4882a593Smuzhiyun[Upstream status: probably not upstreamable] 15*4882a593Smuzhiyun--- 16*4882a593Smuzhiyun Makefile.PL | 2 +- 17*4882a593Smuzhiyun 1 file changed, 1 insertion(+), 1 deletion(-) 18*4882a593Smuzhiyun 19*4882a593Smuzhiyundiff --git a/Makefile.PL b/Makefile.PL 20*4882a593Smuzhiyunindex 25f2f93..7da3651 100644 21*4882a593Smuzhiyun--- a/Makefile.PL 22*4882a593Smuzhiyun+++ b/Makefile.PL 23*4882a593Smuzhiyun@@ -47,7 +47,7 @@ If you want to try to compile anyway, please rerun this script with the option - 24*4882a593Smuzhiyun END 25*4882a593Smuzhiyun } 26*4882a593Smuzhiyun 27*4882a593Smuzhiyun-@INC = qw(-I/usr/include -I/usr/include/gd) unless @INC; 28*4882a593Smuzhiyun+#@INC = qw(-I/usr/include -I/usr/include/gd) unless @INC; 29*4882a593Smuzhiyun @LIBPATH = qw(-L/usr/lib/X11 -L/usr/X11R6/lib -L/usr/X11/lib -L/usr/lib) unless @LIBPATH; 30*4882a593Smuzhiyun @LIBS = qw(-lgd) unless @LIBS; 31*4882a593Smuzhiyun 32*4882a593Smuzhiyun-- 33*4882a593Smuzhiyun2.29.2 34*4882a593Smuzhiyun 35