[I set normal serverity because it's major severity for G/FBSD project, it's an enhancement from G/Linux point of view, so I took a compromise] Currently, calling 'emake' in ebuilds directly calls 'make' binary, which, on G/FBSD, it's bsd's make. Unfortunately a couple of packages uses non-portable syntax which breaks when called without gmake. Aliasing make='gmake' works for make install calls, but it doesn't for emake because it's an external script. One of the solutions found which can fix the problem is to call ${MAKE:-make} instead of make in emake script, so that G/FBSD needs only to set MAKE="gmake" in make.defaults. This also has the side effect of allowing users to select their 'make' command if there's another make which is 100% gmake compatible. Fortunately, most of auto* packages works fine with both makes, but some of them, like, for example, gawk, doesn't work at all because they use something like $(RM) which is an internal reference for gmake, but not for bsdmake. (the option of just adding a check in configure.in to check for RM so to have $(RM) defined on every make was already rejected in bug #90847. Thanks in advance, Diego
Mike? This one's for you!
changing emake to run '${MAKE:-make}' instead of 'make' works for me
Thanks works fine now :)