about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-12-10 10:19:59 +0000
committerUlrich Drepper <drepper@redhat.com>1998-12-10 10:19:59 +0000
commit38e110968123cfc3a85c50d79b656ad367d1a92f (patch)
tree153ca8b0d34949661df142b7441781b0ef941ad2
parent648c133790556357a430d83c2c89a2bd01df9e27 (diff)
downloadglibc-38e110968123cfc3a85c50d79b656ad367d1a92f.tar.gz
glibc-38e110968123cfc3a85c50d79b656ad367d1a92f.tar.xz
glibc-38e110968123cfc3a85c50d79b656ad367d1a92f.zip
Update.
1998-12-10  Ulrich Drepper  <drepper@cygnus.com>

	* sunrpc/Makefile: Call rpcgen program which -Y parameter so that
	it can find the preprocessor.
-rw-r--r--ChangeLog5
-rw-r--r--sunrpc/Makefile4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 76eea4506d..fba783985a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1998-12-10  Ulrich Drepper  <drepper@cygnus.com>
+
+	* sunrpc/Makefile: Call rpcgen program which -Y parameter so that
+	it can find the preprocessor.
+
 1998-12-09  Geoff Keating  <geoffk@ozemail.com.au>
 
 	* sysdeps/unix/sysv/linux/sys/procfs.h: Use sys/user.h not
diff --git a/sunrpc/Makefile b/sunrpc/Makefile
index 5ab9fb5941..a8003d97bd 100644
--- a/sunrpc/Makefile
+++ b/sunrpc/Makefile
@@ -149,7 +149,7 @@ $(rpcsvc:%.x=$(objpfx)rpcsvc/%.h): $(objpfx)rpcsvc/%.h: $(objpfx)rpcsvc/%.stmp
 $(objpfx)rpcsvc/%.stmp: rpcsvc/%.x $(objpfx)rpcgen
 	$(make-target-directory)
 	-@rm -f ${@:stmp=T} $@
-	$(rpcgen-cmd) -h $< -o ${@:stmp=T}
+	$(rpcgen-cmd) -Y `$(CC) -print-file-name=.` -h $< -o ${@:stmp=T}
 	$(move-if-change) $(@:stmp=T) $(@:stmp=h)
 	touch $@
 
@@ -158,7 +158,7 @@ $(rpcsvc:%.x=$(objpfx)x%.c): $(objpfx)x%.c: $(objpfx)x%.stmp
 	@:
 $(objpfx)x%.stmp: rpcsvc/%.x $(objpfx)rpcgen
 	-@rm -f ${@:stmp=T} $@
-	$(rpcgen-cmd) -c $< -o ${@:stmp=T}
+	$(rpcgen-cmd) -Y `$(CC) -print-file-name=.` -c $< -o ${@:stmp=T}
 	$(move-if-change) $(@:stmp=T) $(@:stmp=c)
 	touch $@