Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame^] | 1 | From 65463a7c5cb2514b1523a81911810effffb75a79 Mon Sep 17 00:00:00 2001 |
| 2 | From: Yi Zhao <yi.zhao@windriver.com> |
| 3 | Date: Fri, 28 Jun 2019 15:05:31 +0800 |
| 4 | Subject: [PATCH] configure.in: disable tirpc checking for fedora |
| 5 | |
| 6 | The Fedora 28+ does not have inbuilt SunRPC support in glibc and is |
| 7 | separately availble in tirpc package. So it enables tirpc checking for |
| 8 | fedora in configure. |
| 9 | |
| 10 | Drop this piece of code since we had specify '-ltirpc' in LDFLAGS |
| 11 | explicitly. Otherwise it will cause a compile-host-path QA issue if the |
| 12 | host is Fedora 28+: |
| 13 | cc1: warning: include location "/usr/include/tirpc" is unsafe for |
| 14 | cross-compilation [-Wpoison-system-directories] |
| 15 | |
| 16 | Upstream-Status: Inappropriate [embedded specific] |
| 17 | |
| 18 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> |
| 19 | --- |
| 20 | configure.in | 24 ------------------------ |
| 21 | 1 file changed, 24 deletions(-) |
| 22 | |
| 23 | diff --git a/configure.in b/configure.in |
| 24 | index 8662cdd..0ff7e27 100644 |
| 25 | --- a/configure.in |
| 26 | +++ b/configure.in |
| 27 | @@ -895,30 +895,6 @@ if test "x$enable_dlclose" = "xno"; then |
| 28 | AC_DEFINE([DISABLE_DLCLOSE_FOR_VALGRIND_TESTING],[1],[Don't close opened shared objects for valgrind leak testing of dynamic libraries]) |
| 29 | fi |
| 30 | |
| 31 | -################################################## |
| 32 | -# Fedora 28+ does not have inbuilt SunRPC support# |
| 33 | -# in glibc and is separately availble in tirpc # |
| 34 | -# package. Make sure we've got the library and # |
| 35 | -# link it # |
| 36 | -################################################## |
| 37 | - |
| 38 | -if test -f /etc/fedora-release ; then |
| 39 | - DISTRO_VERSION=$(awk '{ print $3 }' /etc/fedora-release) |
| 40 | - if test $DISTRO_VERSION -ge 28 ; then |
| 41 | - TIRPC="" |
| 42 | - AC_CHECK_LIB(tirpc,bindresvport,, TIRPC="no") |
| 43 | - echo "$TIRPC" |
| 44 | - if test "x$TIRPC" = "xno"; then |
| 45 | - echo |
| 46 | - echo " ERROR! tirpc not found, get it by running " |
| 47 | - echo " yum install libtirpc-devel " |
| 48 | - exit |
| 49 | - fi |
| 50 | - LIBS="${LIBS} -ltirpc" |
| 51 | - extra_incl="-I/usr/include/tirpc" |
| 52 | - fi |
| 53 | -fi |
| 54 | - |
| 55 | Z_LIB="" |
| 56 | AC_CHECK_HEADERS(zlib.h,, Z_LIB="no") |
| 57 | if test "x$Z_LIB" = "xno"; then |
| 58 | -- |
| 59 | 2.7.4 |
| 60 | |