not-check-libperl.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. From 1a9416bae71aa935797add3fa11407732ad010c0 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] not check libperl under cross compiling
  5. Upstream-Status: Inappropriate [configuration]
  6. libperl ldflags returned by PGAC_CHECK_PERL_EMBED_LDFLAGS are native,
  7. can not be used to check target library.
  8. postpresql has the dependency on perl, so not need to check libperl
  9. again, like in postgresql-9.2.4
  10. Signed-off-by: Roy Li <rongqing.li@windriver.com>
  11. update patch to version 11.1
  12. Signed-off-by: Changqing Li <changqing.li@windriver.com>
  13. ---
  14. configure.ac | 2 +-
  15. 1 file changed, 1 insertion(+), 1 deletion(-)
  16. diff --git a/configure.ac b/configure.ac
  17. index f398184..493d5cd 100644
  18. --- a/configure.ac
  19. +++ b/configure.ac
  20. @@ -2336,7 +2336,7 @@ Use --without-tcl to disable building PL/Tcl.])
  21. fi
  22. # check for <perl.h>
  23. -if test "$with_perl" = yes; then
  24. +if test "$with_perl" = yes && test "$cross_compiling" = no; then
  25. ac_save_CPPFLAGS=$CPPFLAGS
  26. CPPFLAGS="$CPPFLAGS $perl_includespec"
  27. AC_CHECK_HEADER(perl.h, [], [AC_MSG_ERROR([header file <perl.h> is required for Perl])],