[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] trouble with mintlib + gcc 4.4.2
rpcgen-cmd := $(srcdir)/rpcgen -Y $(patsubst %/cpp,%,$(shell which cpp))
[...]
MiKRO, check what is good for you, and please provide a patch.
Your advice was helpful as always so the least I can do is to provide a patch. I tested it on Aranym and CT60 Falcon, no problems.
Alan, you can commit it into mintlib, it's a patch allowing to have cpp installed in any place, not just in /usr/bin path.
--
MiKRO / Mystic Bytes
http://mikro.atari.org
Index: sunrpc/Makefile
===================================================================
RCS file: /mint/mintlib/sunrpc/Makefile,v
retrieving revision 1.7
diff -u -r1.7 Makefile
--- sunrpc/Makefile 3 Jun 2002 12:50:53 -0000 1.7
+++ sunrpc/Makefile 12 Jan 2010 19:14:23 -0000
@@ -63,10 +63,7 @@
# Not suitable for cross-compiling.
ifndef CROSS
-rpcgen-cmd = $(srcdir)/rpcgen `$(CC) -print-file-name=cpp | \
- sed -e "s,/cpp$$,," \
- -e "s,^cpp$$,," \
- -e "s,^..*,-Y &,"`
+rpcgen-cmd := $(srcdir)/rpcgen -Y $(patsubst %/cpp,%,$(shell which cpp))
# XDR headers.
$(rpcsvc:%.x=%.h): %.h: %.stmp