This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
libffi-3.0.10 -- AIX wc(1) incompatibility in Makefile
- From: Lorinczy Zsigmond <lzsiga at mail dot ahiv dot hu>
- To: green at moxielogic dot com
- Cc: libffi-discuss at sourceware dot org
- Date: Fri, 09 Dec 2011 17:37:10 +0100
- Subject: libffi-3.0.10 -- AIX wc(1) incompatibility in Makefile
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