Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 1 | [PATCH] not check libperl under cross compiling |
| 2 | |
| 3 | Upstream-Status: Inappropriate [configuration] |
| 4 | |
| 5 | libperl ldflags returned by PGAC_CHECK_PERL_EMBED_LDFLAGS are native, |
| 6 | can not be used to check target library. |
| 7 | |
| 8 | postpresql has the dependency on perl, so not need to check libperl |
| 9 | again, like in postgresql-9.2.4 |
| 10 | |
| 11 | Signed-off-by: Roy Li <rongqing.li@windriver.com> |
| 12 | --- |
| 13 | configure.in | 2 +- |
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 15 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 16 | Index: postgresql-9.4.15/configure.in |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 17 | =================================================================== |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 18 | --- postgresql-9.4.15.orig/configure.in |
| 19 | +++ postgresql-9.4.15/configure.in |
| 20 | @@ -1879,7 +1879,7 @@ if test "$with_tcl" = yes; then |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 21 | fi |
| 22 | |
| 23 | # check for <perl.h> |
| 24 | -if test "$with_perl" = yes; then |
| 25 | +if test "$with_perl" = yes && test "$cross_compiling" = no; then |
| 26 | ac_save_CPPFLAGS=$CPPFLAGS |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 27 | CPPFLAGS="$CPPFLAGS -I$perl_archlibexp/CORE" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 28 | AC_CHECK_HEADER(perl.h, [], [AC_MSG_ERROR([header file <perl.h> is required for Perl])], |