This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
Re: libffi-3.0.10 -- AIX wc(1) incompatibility in Makefile
- From: Anthony Green <green at moxielogic dot com>
- To: Lorinczy Zsigmond <lzsiga at mail dot ahiv dot hu>
- Cc: libffi-discuss at sourceware dot org
- Date: Fri, 09 Dec 2011 12:19:54 -0500
- Subject: Re: libffi-3.0.10 -- AIX wc(1) incompatibility in Makefile
- References: <4EE23936.1000203@mail.ahiv.hu>
On 12/9/2011 11:37 AM, Lorinczy Zsigmond wrote:
Hello,
I think I have found a little incompatibility-problem in the
libffi-3.0.10 Makefile, caused be the AIX's wc(1) program: it prefixes
the returned number with spaces, so statements like:
if test "$n" = "0";
will fail. The following change seems to fix this:
sed 's/test "$$n" = "0"/test "$$n" -eq "0"/g' Makefile
ie. using numerical comparison instead of string-comparison.
Yours: Lőrinczy Zsigmond
This is fixed in the github hosted sources*. I received many reports
of similar failures for a variety of non-Linux systems.
Köszönöm, Lőrinczy. **
* github.com:/atgreen/libffi.git
** this is about all I can manage in Hungarian :-)