This is the mail archive of the libffi-discuss@sourceware.org mailing list for the libffi project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]