diff options
Diffstat (limited to 'meta-oe/recipes-dbs/postgresql/files/not-check-libperl.patch')
-rw-r--r-- | meta-oe/recipes-dbs/postgresql/files/not-check-libperl.patch | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/meta-oe/recipes-dbs/postgresql/files/not-check-libperl.patch b/meta-oe/recipes-dbs/postgresql/files/not-check-libperl.patch index 971510943..22b62d9de 100644 --- a/meta-oe/recipes-dbs/postgresql/files/not-check-libperl.patch +++ b/meta-oe/recipes-dbs/postgresql/files/not-check-libperl.patch | |||
@@ -1,4 +1,7 @@ | |||
1 | [PATCH] not check libperl under cross compiling | 1 | From 7e2af4de19be58bc9d551c41ce2750396d357f34 Mon Sep 17 00:00:00 2001 |
2 | From: Changqing Li <changqing.li@windriver.com> | ||
3 | Date: Tue, 27 Nov 2018 13:25:15 +0800 | ||
4 | Subject: [PATCH] PATCH] not check libperl under cross compiling | ||
2 | 5 | ||
3 | Upstream-Status: Inappropriate [configuration] | 6 | Upstream-Status: Inappropriate [configuration] |
4 | 7 | ||
@@ -6,23 +9,29 @@ libperl ldflags returned by PGAC_CHECK_PERL_EMBED_LDFLAGS are native, | |||
6 | can not be used to check target library. | 9 | can not be used to check target library. |
7 | 10 | ||
8 | postpresql has the dependency on perl, so not need to check libperl | 11 | postpresql has the dependency on perl, so not need to check libperl |
9 | again, like in postgresql-9.2.4 | 12 | again, like in postgresql-9.2.4 |
10 | 13 | ||
11 | Signed-off-by: Roy Li <rongqing.li@windriver.com> | 14 | Signed-off-by: Roy Li <rongqing.li@windriver.com> |
15 | |||
16 | update patch to version 11.1 | ||
17 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
12 | --- | 18 | --- |
13 | configure.in | 2 +- | 19 | configure.in | 2 +- |
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | 20 | 1 file changed, 1 insertion(+), 1 deletion(-) |
15 | 21 | ||
16 | Index: postgresql-9.4.15/configure.in | 22 | diff --git a/configure.in b/configure.in |
17 | =================================================================== | 23 | index b98b9bb..8584677 100644 |
18 | --- postgresql-9.4.15.orig/configure.in | 24 | --- a/configure.in |
19 | +++ postgresql-9.4.15/configure.in | 25 | +++ b/configure.in |
20 | @@ -1879,7 +1879,7 @@ if test "$with_tcl" = yes; then | 26 | @@ -2211,7 +2211,7 @@ Use --without-tcl to disable building PL/Tcl.]) |
21 | fi | 27 | fi |
22 | 28 | ||
23 | # check for <perl.h> | 29 | # check for <perl.h> |
24 | -if test "$with_perl" = yes; then | 30 | -if test "$with_perl" = yes; then |
25 | +if test "$with_perl" = yes && test "$cross_compiling" = no; then | 31 | +if test "$with_perl" = yes && test "$cross_compiling" = no; then |
26 | ac_save_CPPFLAGS=$CPPFLAGS | 32 | ac_save_CPPFLAGS=$CPPFLAGS |
27 | CPPFLAGS="$CPPFLAGS -I$perl_archlibexp/CORE" | 33 | CPPFLAGS="$CPPFLAGS $perl_includespec" |
28 | AC_CHECK_HEADER(perl.h, [], [AC_MSG_ERROR([header file <perl.h> is required for Perl])], | 34 | AC_CHECK_HEADER(perl.h, [], [AC_MSG_ERROR([header file <perl.h> is required for Perl])], |
35 | -- | ||
36 | 2.7.4 | ||
37 | |||