[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Simple patch for allowing NCurses to build on HPE NonStop
From: |
Thomas Dickey |
Subject: |
Re: Simple patch for allowing NCurses to build on HPE NonStop |
Date: |
Mon, 17 Aug 2020 19:24:50 -0400 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
On Mon, Aug 17, 2020 at 06:50:17PM -0400, Randall S. Becker wrote:
> I have a straightforward patch that would allow Ncurses to build on HPE
> NonStop platforms. This is fairly trivial. The first patch recognizes the
> platform, while the second is required because of where secondary string
> method definitions are located. The patch is based on ncurses 6.2 - patch
> 20200613 (commit 7503e8d8).
thanks (on to-do list)
> diff --git a/configure b/configure
> index b3b29cef..545fc9c3 100755
ok (actually aclocal.m4)
> --- a/configure
> +++ b/configure
> @@ -6134,6 +6134,16 @@ CF_EOF
> MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared
> -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
> ;;
> + nskJ*) #(vi
> + CC_SHARED_OPTS=
> + MK_SHARED_LIB='${LD} -Wshared -Weld=-export_all -o $@'
> + ;;
> +
> + nskL*) #(vi
> + CC_SHARED_OPTS=
> + MK_SHARED_LIB='${LD} -Wshared -Wxld=-export_all -o $@'
> + ;;
> +
> (nto-qnx*|openbsd*|freebsd[12].*)
> CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
> MK_SHARED_LIB='${LD} ${LDFLAGS} -Bshareable -o $@'
>
> diff --git a/test/picsmap.c b/test/picsmap.c
> index 432fbf7a..fc0b90db 100644
> --- a/test/picsmap.c
> +++ b/test/picsmap.c
> @@ -83,6 +83,10 @@
> #define RGB_PATH "/etc/X11/rgb.txt"
> #endif
>
> +#ifdef __TANDEM
Actually - something like this:
#if HAVE_STRINGS_H
> +#include <strings.h>
> +#endif
> +
> #include <picsmap.h>
>
> typedef struct {
--
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net
ftp://ftp.invisible-island.net
signature.asc
Description: PGP signature