blob: fa46912eef5a89cdcc6b4663bc9509474c9da8dd [file] [log] [blame]
Andrew Geissler595f6302022-01-24 19:11:47 +00001From 56b830edecff1cac5f8a8a956e7a7eeef2aa7c17 Mon Sep 17 00:00:00 2001
Brad Bishop19323692019-04-05 15:28:33 -04002From: Changqing Li <changqing.li@windriver.com>
3Date: Tue, 27 Nov 2018 13:25:15 +0800
Andrew Geissler595f6302022-01-24 19:11:47 +00004Subject: [PATCH] not check libperl under cross compiling
Brad Bishop316dfdd2018-06-25 12:45:53 -04005
6Upstream-Status: Inappropriate [configuration]
7
8libperl ldflags returned by PGAC_CHECK_PERL_EMBED_LDFLAGS are native,
9can not be used to check target library.
10
11postpresql has the dependency on perl, so not need to check libperl
Brad Bishop19323692019-04-05 15:28:33 -040012again, like in postgresql-9.2.4
Brad Bishop316dfdd2018-06-25 12:45:53 -040013
14Signed-off-by: Roy Li <rongqing.li@windriver.com>
Brad Bishop19323692019-04-05 15:28:33 -040015
16update patch to version 11.1
17Signed-off-by: Changqing Li <changqing.li@windriver.com>
Brad Bishop316dfdd2018-06-25 12:45:53 -040018---
Andrew Geissler595f6302022-01-24 19:11:47 +000019 configure.ac | 2 +-
Brad Bishop316dfdd2018-06-25 12:45:53 -040020 1 file changed, 1 insertion(+), 1 deletion(-)
21
Andrew Geissler595f6302022-01-24 19:11:47 +000022diff --git a/configure.ac b/configure.ac
23index fba79ee..7170f26 100644
24--- a/configure.ac
25+++ b/configure.ac
26@@ -2261,7 +2261,7 @@ Use --without-tcl to disable building PL/Tcl.])
Brad Bishop316dfdd2018-06-25 12:45:53 -040027 fi
28
29 # check for <perl.h>
30-if test "$with_perl" = yes; then
31+if test "$with_perl" = yes && test "$cross_compiling" = no; then
32 ac_save_CPPFLAGS=$CPPFLAGS
Brad Bishop19323692019-04-05 15:28:33 -040033 CPPFLAGS="$CPPFLAGS $perl_includespec"
Brad Bishop316dfdd2018-06-25 12:45:53 -040034 AC_CHECK_HEADER(perl.h, [], [AC_MSG_ERROR([header file <perl.h> is required for Perl])],
Andrew Geissler595f6302022-01-24 19:11:47 +000035--
362.34.1
37