[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ncurses-5.2
From: |
bkohlen |
Subject: |
ncurses-5.2 |
Date: |
Wed, 14 Feb 2001 13:59:43 -0800 |
Maintainers,
I came up with a little peice of ugliness that allows "make
install.data" (and therefore "make install") to work when cross
compiling. It relies on the assumption that there is already a version
of tic for the build machine installed. I guess I am also assuming that
tic generates the same terminfo database from a given set of sources no
matter what architecture it is run on. It seemed fairly likely to me
that the terminfo database is arch-independent. Anyhow, it's just a
patch to run_tic.in that checks if you were cross compiling, and if so,
runs the installed version of tic instead of the one you just compiled.
Since we already have a BUILD_CC to use, it would be great if we could
just compile two versions of tic, when cross-compiling (a host version
and a build version) then you could use the build version to create
terminfo at install time, but install the host version (for packaging
purposes).
$ diff ncurses-5.2/misc/run_tic.in my_run_tic.in
54a55,56
> : address@hidden@}
> : address@hidden@}
59,63c61,68
< case "$PATH" in
< :*) PATH=../progs:${DESTDIR}$bindir$PATH ;;
< *) PATH=../progs:${DESTDIR}$bindir:$PATH ;;
< esac
< export PATH
---
> # Or from the build machines tic, if we are cross compiling
> if test $CC = $BUILD_CC ; then
> case "$PATH" in
> :*) PATH=../progs:${DESTDIR}$bindir$PATH ;;
> *) PATH=../progs:${DESTDIR}$bindir:$PATH ;;
> esac
> export PATH
> fi
[Prev in Thread] |
Current Thread |
[Next in Thread] |