diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-11-02 02:08:57 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-11-02 02:08:57 +0000 |
commit | 980c4d04493807bbc52b84cd0cf04b5c0338bc6d (patch) | |
tree | 055c0b2889a5aa831dc1b8504625264772c21b79 | |
parent | 2f653c01fcafd030129eb96394303965541ed5b2 (diff) | |
download | glibc-980c4d04493807bbc52b84cd0cf04b5c0338bc6d.tar glibc-980c4d04493807bbc52b84cd0cf04b5c0338bc6d.tar.gz glibc-980c4d04493807bbc52b84cd0cf04b5c0338bc6d.tar.bz2 glibc-980c4d04493807bbc52b84cd0cf04b5c0338bc6d.zip |
Update.
* sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
* scripts/cpp: New file.
-rw-r--r-- | ChangeLog | 3 | ||||
-rwxr-xr-x | scripts/cpp | 21 | ||||
-rw-r--r-- | sunrpc/Makefile | 3 |
3 files changed, 25 insertions, 2 deletions
@@ -1,5 +1,8 @@ 2001-11-01 Ulrich Drepper <drepper@redhat.com> + * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls. + * scripts/cpp: New file. + * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB for rtld_search_dirs content. Minor optimizations. diff --git a/scripts/cpp b/scripts/cpp new file mode 100755 index 0000000000..4a62f1e5ae --- /dev/null +++ b/scripts/cpp @@ -0,0 +1,21 @@ +#! /bin/sh +cpp=`which cpp 2>/dev/null` +if test $? -ne 0; then + cpp=`type cpp 2>/dev/null | awk '{ print $NF }'` + if test $? -ne 0; then + cpp=`gcc -print-file-name=cpp 2>/dev/null` + if test $? -ne 0; then + if test -x /lib/cpp; then + cpp=/lib/cpp + else + echo "cpp not found" 1>&2 + exit 1 + fi + fi + fi +fi + +exec $cpp $* +Local Variables: +mode: sh +End: diff --git a/sunrpc/Makefile b/sunrpc/Makefile index c1bf945271..b7858d6c89 100644 --- a/sunrpc/Makefile +++ b/sunrpc/Makefile @@ -126,8 +126,7 @@ $(objpfx)rpcgen: $(addprefix $(objpfx),$(rpcgen-objs)) \ $(+link) # Tell rpcgen where to find the C preprocessor. -rpcgen-cmd = $(built-program-cmd) -Y `$(CC) -print-file-name=cpp | \ - sed 's|/cpp$$||'` +rpcgen-cmd = $(built-program-cmd) -Y ../scripts # Install the rpc data base file. $(inst_sysconfdir)/rpc: etc.rpc $(+force) |