summaryrefslogtreecommitdiff
path: root/sunrpc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sunrpc/Makefile')
-rw-r--r--sunrpc/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/sunrpc/Makefile b/sunrpc/Makefile
index 11f5541542..efad599716 100644
--- a/sunrpc/Makefile
+++ b/sunrpc/Makefile
@@ -75,9 +75,12 @@ extra-objs = $(rpcgen-objs)
all: # Make this the default target; it will be defined in Rules.
+# Sun's code is not too clean.
+override +gccwarn := -w
+
include ../Makeconfig
-ifeq (no,$(cross-compile))
+ifeq (no,$(cross-compiling))
# We can only build this library if we can run the rpcgen we build.
extra-libs := librpcsvc
extra-libs-others := librpcsvc # Make it in `others' pass, not `lib' pass.
@@ -86,9 +89,6 @@ librpcsvc-inhibit-o = .so # Build no shared rpcsvc library.
omit-deps = $(librpcsvc-routines)
endif
-# Sun's code is not too clean.
-override +gccwarn := -w
-
include ../Rules
$(objpfx)rpcgen: $(addprefix $(objpfx),$(rpcgen-objs)) $(common-objpfx)libc.a