This is the mail archive of the
libc-hacker@cygnus.com
mailing list for the glibc project.
sunrpc and cpp again
- To: libc-hacker@cygnus.com
- Subject: sunrpc and cpp again
- From: Philip.Blundell@pobox.com
- Date: Sat, 02 Jan 1999 23:52:13 +0100
This change:
1998-12-10 Ulrich Drepper <drepper@cygnus.com>
* sunrpc/Makefile: Call rpcgen program which -Y parameter so that
it can find the preprocessor.
doesn't quite do the right thing. If the user has set LIBRARY_PATH in his
environment then gcc will happily find `.' in the first directory on the path
even if it doesn't contain cpp. Here's another patch which fixes this for me.
p.
1999-01-02 Philip Blundell <philb@gnu.org>
* glibc-2.0.109/sunrpc/Makefile: Ensure that we really use the
right path for cpp.
--- clean/glibc-2.0.109/sunrpc/Makefile Thu Dec 31 12:45:04 1998
+++ glibc-2.0.109/sunrpc/Makefile Sat Jan 2 23:43:43 1999
@@ -149,7 +149,7 @@
$(objpfx)rpcsvc/%.stmp: rpcsvc/%.x $(objpfx)rpcgen
$(make-target-directory)
-@rm -f ${@:stmp=T} $@
- $(rpcgen-cmd) -Y `$(CC) -print-file-name=.` -h $< -o ${@:stmp=T}
+ $(rpcgen-cmd) -Y $(shell dirname `$(CC) -print-file-name=cpp`) -h $< -o ${@:stmp=T}
$(move-if-change) $(@:stmp=T) $(@:stmp=h)
touch $@
@@ -158,7 +158,7 @@
@:
$(objpfx)x%.stmp: rpcsvc/%.x $(objpfx)rpcgen
-@rm -f ${@:stmp=T} $@
- $(rpcgen-cmd) -Y `$(CC) -print-file-name=.` -c $< -o ${@:stmp=T}
+ $(rpcgen-cmd) -Y $(shell dirname `$(CC) -print-file-name=cpp`) -c $< -o ${@:stmp=T}
$(move-if-change) $(@:stmp=T) $(@:stmp=c)
touch $@