bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fix sunrpc build for some gcc versions


From: Matthew Wilcox
Subject: fix sunrpc build for some gcc versions
Date: Fri, 20 Apr 2001 15:37:36 -0600

2001-04-20  Alan Modra  <address@hidden>

        * sunrpc/Makefile (CPPDIR): Define to handle new gcc that doesn't
        understand -print-file-name=cpp.
        (rpcgen-cmd): Use the above
 
diff -urNx CVS glibc-2.2.1/sunrpc/Makefile glibc/sunrpc/Makefile
--- glibc-2.2.1/sunrpc/Makefile Mon Jan 15 14:36:01 2001
+++ glibc/sunrpc/Makefile       Mon Feb  5 07:55:08 2001
@@ -125,8 +125,10 @@
        $(+link)
 
 # Tell rpcgen where to find the C preprocessor.
-rpcgen-cmd = $(built-program-cmd) -Y `$(CC) -print-file-name=cpp | \
-                                     sed 's|/cpp$$||'`
+CPPDIR := `x=\`$(CC) -print-file-name=cpp\`; \
+          test x$$x = xcpp && x=\`which cpp\`; \
+          echo $$x | sed 's,/cpp$$,,'`
+rpcgen-cmd = $(built-program-cmd) -Y $(CPPDIR)
 
 # Install the rpc data base file.
 $(inst_sysconfdir)/rpc: etc.rpc $(+force)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]