xref: /openbmc/openbmc/meta-openembedded/meta-oe/recipes-dbs/postgresql/files/not-check-libperl.patch (revision eaae0b339f806200d8722cb09e5e3b83c15a5956)
1From 1a9416bae71aa935797add3fa11407732ad010c0 Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com>
3Date: Tue, 27 Nov 2018 13:25:15 +0800
4Subject: [PATCH] not check libperl under cross compiling
5
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
12again, like in postgresql-9.2.4
13
14Signed-off-by: Roy Li <rongqing.li@windriver.com>
15
16update patch to version 11.1
17Signed-off-by: Changqing Li <changqing.li@windriver.com>
18---
19 configure.ac | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22diff --git a/configure.ac b/configure.ac
23index f398184..493d5cd 100644
24--- a/configure.ac
25+++ b/configure.ac
26@@ -2336,7 +2336,7 @@ Use --without-tcl to disable building PL/Tcl.])
27 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
33   CPPFLAGS="$CPPFLAGS $perl_includespec"
34   AC_CHECK_HEADER(perl.h, [], [AC_MSG_ERROR([header file <perl.h> is required for Perl])],
35