From mboxrd@z Thu Jan 1 00:00:00 1970 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes Message-Id: <9902081029.AA35641@ibmth.df.unipi.it> To: zsh-workers@sunsite.auc.dk Subject: Re: PATCH zsh-3.1.5-pws-7: cygwin make fixes In-Reply-To: "Peter Stephenson"'s message of "Mon, 08 Feb 1999 10:55:30 NFT." <9902080955.AA34221@ibmth.df.unipi.it> Date: Mon, 08 Feb 1999 11:29:15 +0100 From: Peter Stephenson X-Mailing-List: 5318 I wrote: > Bart wrote: > > I haven't examined the patch in detail to check this, but did you make > > sure that the compilation of this program is performed in such a way that > > it executes correctly on the current hardware even when cross-compiling > > for another architecture? > > The trouble is mksignames actually has to run on the target > architecture to generate the appropriate signal names. I don't know > if there's any way of doing that at all with autoconf. Any more > ideas? We could maybe make it conditional on not cross-compiling, > since it does solve the #include problem fairly neatly. As configure.in contains AC_TRY_RUN statements, it looks to me unlikely that the zsh build system supports cross-compilation anyway --- this is specifically warned about in the autoconf manual --- in which case there's no objection to Matt's patch. Does anyone know for a fact that zsh has ever been successfully cross-compiled? FYI, the tests that currently have to be run, rather than just compiled, are the following. All but the first five are to do with dynamically linked libraries. - signed to unsigned casting - if tgetent accepts NULL - if rlim_t is quad_t - if rlim_t is unsigned - if named FIFOs work - for ELF binaries - if dlsym() needs a leading underscore - if static/shared linking is broken - if name clashes in shared objects are ok - whether cross-library links are ok - for working RTLD_GLOBAL - if libraries can find symbols in exec - whether executables can be stripped - if dynamically loaded libs can be stripped -- Peter Stephenson Tel: +39 050 844536 WWW: http://www.ifh.de/~pws/ Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy