sys-libs/ncurses-compat/files/ncurses-6.0-cppflags-cross.patch
author gabriel
Thu, 25 Mar 2021 16:16:18 +0000
changeset 30 5b3b4ac6d9f1
parent 22 9803496ddf72
permissions -rw-r--r--
Borrow Sam's changes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
22
9803496ddf72 Add --with-verisoned-symbols to ncurses-compat
gabriel
parents:
diff changeset
     1
https://bugs.gentoo.org/601426
9803496ddf72 Add --with-verisoned-symbols to ncurses-compat
gabriel
parents:
diff changeset
     2
https://lists.gnu.org/archive/html/bug-ncurses/2015-02/msg00012.html
9803496ddf72 Add --with-verisoned-symbols to ncurses-compat
gabriel
parents:
diff changeset
     3
9803496ddf72 Add --with-verisoned-symbols to ncurses-compat
gabriel
parents:
diff changeset
     4
From: John Vogel
9803496ddf72 Add --with-verisoned-symbols to ncurses-compat
gabriel
parents:
diff changeset
     5
Subject: [PATCH] c++ binding missed when cross compiling
9803496ddf72 Add --with-verisoned-symbols to ncurses-compat
gabriel
parents:
diff changeset
     6
Date: Mon, 16 Feb 2015 01:01:48 -0500
9803496ddf72 Add --with-verisoned-symbols to ncurses-compat
gabriel
parents:
diff changeset
     7
9803496ddf72 Add --with-verisoned-symbols to ncurses-compat
gabriel
parents:
diff changeset
     8
The configure script hard codes the include dir to the prefix'ed include dir,
9803496ddf72 Add --with-verisoned-symbols to ncurses-compat
gabriel
parents:
diff changeset
     9
when checking if c++ compiler works. This breaks the compiler's built-in search
9803496ddf72 Add --with-verisoned-symbols to ncurses-compat
gabriel
parents:
diff changeset
    10
path. I've included two patches. The first works on the configure.in file, which
9803496ddf72 Add --with-verisoned-symbols to ncurses-compat
gabriel
parents:
diff changeset
    11
requires your autoconf stuff to test and I'm not ready to meddle with at the
9803496ddf72 Add --with-verisoned-symbols to ncurses-compat
gabriel
parents:
diff changeset
    12
moment. The other works directly on the configure file. I've tested the second
9803496ddf72 Add --with-verisoned-symbols to ncurses-compat
gabriel
parents:
diff changeset
    13
one; it should mirror what the first patch tries to achieve and works for me.
9803496ddf72 Add --with-verisoned-symbols to ncurses-compat
gabriel
parents:
diff changeset
    14
9803496ddf72 Add --with-verisoned-symbols to ncurses-compat
gabriel
parents:
diff changeset
    15
--- a/configure
9803496ddf72 Add --with-verisoned-symbols to ncurses-compat
gabriel
parents:
diff changeset
    16
+++ b/configure
9803496ddf72 Add --with-verisoned-symbols to ncurses-compat
gabriel
parents:
diff changeset
    17
@@ -2938,10 +2938,6 @@
9803496ddf72 Add --with-verisoned-symbols to ncurses-compat
gabriel
parents:
diff changeset
    18
 		echo "$as_me:2938: checking if $CXX works" >&5
9803496ddf72 Add --with-verisoned-symbols to ncurses-compat
gabriel
parents:
diff changeset
    19
 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
9803496ddf72 Add --with-verisoned-symbols to ncurses-compat
gabriel
parents:
diff changeset
    20
 
9803496ddf72 Add --with-verisoned-symbols to ncurses-compat
gabriel
parents:
diff changeset
    21
-		save_CPPFLAGS="$CPPFLAGS"
9803496ddf72 Add --with-verisoned-symbols to ncurses-compat
gabriel
parents:
diff changeset
    22
-		eval cf_includedir=${includedir}
9803496ddf72 Add --with-verisoned-symbols to ncurses-compat
gabriel
parents:
diff changeset
    23
-		CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
9803496ddf72 Add --with-verisoned-symbols to ncurses-compat
gabriel
parents:
diff changeset
    24
-
9803496ddf72 Add --with-verisoned-symbols to ncurses-compat
gabriel
parents:
diff changeset
    25
 cat >conftest.$ac_ext <<_ACEOF
9803496ddf72 Add --with-verisoned-symbols to ncurses-compat
gabriel
parents:
diff changeset
    26
 #line 2946 "configure"
9803496ddf72 Add --with-verisoned-symbols to ncurses-compat
gabriel
parents:
diff changeset
    27
 #include "confdefs.h"
9803496ddf72 Add --with-verisoned-symbols to ncurses-compat
gabriel
parents:
diff changeset
    28
@@ -2978,7 +2974,6 @@
9803496ddf72 Add --with-verisoned-symbols to ncurses-compat
gabriel
parents:
diff changeset
    29
 cf_cxx_works=no
9803496ddf72 Add --with-verisoned-symbols to ncurses-compat
gabriel
parents:
diff changeset
    30
 fi
9803496ddf72 Add --with-verisoned-symbols to ncurses-compat
gabriel
parents:
diff changeset
    31
 rm -f conftest.$ac_objext conftest.$ac_ext
9803496ddf72 Add --with-verisoned-symbols to ncurses-compat
gabriel
parents:
diff changeset
    32
-		CPPFLAGS="$save_CPPFLAGS"
9803496ddf72 Add --with-verisoned-symbols to ncurses-compat
gabriel
parents:
diff changeset
    33
 
9803496ddf72 Add --with-verisoned-symbols to ncurses-compat
gabriel
parents:
diff changeset
    34
 		echo "$as_me:2983: result: $cf_cxx_works" >&5
9803496ddf72 Add --with-verisoned-symbols to ncurses-compat
gabriel
parents:
diff changeset
    35
 echo "${ECHO_T}$cf_cxx_works" >&6