bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] ncurses 6.0 wildcard for ppc64


From: Michel Normand
Subject: [PATCH] ncurses 6.0 wildcard for ppc64
Date: Wed, 21 Oct 2015 15:08:29 +0200

related to bug openSUSE 946048
avoid ncurses build error on ppc64 architecture
the nm  tool is reporting _is_missing in Data section for ppc64.
(by comparison ppc64le is reporting it in Text section)
===
[  102s] 
/usr/lib64/gcc/powerpc64-suse-linux/5/../../../../powerpc64-suse-linux/bin/ld:resulting.map:113:
 syntax error in VERSION script
[  102s] collect2: error: ld returned 1 exit status
===

Signed-off-by: Michel Normand <address@hidden>
---
 aclocal.m4 |    3 ++-
 configure  |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/aclocal.m4 b/aclocal.m4
index eeedd2f..2ecc9dd 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -7639,7 +7639,8 @@ EOF
                if make -f conftest.mk 2>&AC_FD_CC >/dev/null
                then
                        # test for missing symbol
-                       cf_missing=`nm -P conftest.so 2>&AC_FD_CC |fgrep 
_ismissing | egrep '[[         ]]T[[   ]]'`
+                       # could be either Data or Text section
+                       cf_missing=`nm -P conftest.so 2>&AC_FD_CC |fgrep 
_ismissing | egrep '[[         ]][DT][[        ]]'`
                        test -n "$cf_missing" && WILDCARD_SYMS=yes
                fi
                AC_MSG_RESULT($WILDCARD_SYMS)
diff --git a/configure b/configure
index b0aee32..ddf731d 100755
--- a/configure
+++ b/configure
@@ -6664,7 +6664,8 @@ EOF
                if make -f conftest.mk 2>&5 >/dev/null
                then
                        # test for missing symbol
-                       cf_missing=`nm -P conftest.so 2>&5 |fgrep _ismissing | 
egrep '[         ]T[     ]'`
+                       # could be either Data or Text section
+                       cf_missing=`nm -P conftest.so 2>&5 |fgrep _ismissing | 
egrep '[         ][DT][  ]'`
                        test -n "$cf_missing" && WILDCARD_SYMS=yes
                fi
                echo "$as_me:6670: result: $WILDCARD_SYMS" >&5
-- 
1.7.9.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]