app-editors/vis: remove
[sgilles-overlay.git] / net-fs / nfs-utils / files / nfs-utils-1.2.8-cross-build.patch
blob7317115a0e18ca031d8789dd248f72e3f4f825b4
1 this is kind of hacky, but automake doesn't make this easy
2 for us atm, so hack away :(
4 (recent autotools will always add $(CFLAGS)/etc... to the compile)
6 --- a/tools/locktest/Makefile.am
7 +++ b/tools/locktest/Makefile.am
8 @@ -1,12 +1,11 @@
9 ## Process this file with automake to produce Makefile.in
11 CC=$(CC_FOR_BUILD)
12 -LIBTOOL = @LIBTOOL@ --tag=CC
13 +CFLAGS=$(CFLAGS_FOR_BUILD)
14 +CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
15 +LDFLAGS=$(LDFLAGS_FOR_BUILD)
17 noinst_PROGRAMS = testlk
18 testlk_SOURCES = testlk.c
19 -testlk_CFLAGS=$(CFLAGS_FOR_BUILD)
20 -testlk_CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
21 -testlk_LDFLAGS=$(LDFLAGS_FOR_BUILD)
23 MAINTAINERCLEANFILES = Makefile.in
24 --- a/tools/rpcgen/Makefile.am
25 +++ b/tools/rpcgen/Makefile.am
26 @@ -1,7 +1,9 @@
27 ## Process this file with automake to produce Makefile.in
29 CC=$(CC_FOR_BUILD)
30 -LIBTOOL = @LIBTOOL@ --tag=CC
31 +CFLAGS=$(CFLAGS_FOR_BUILD)
32 +CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
33 +LDFLAGS=$(LDFLAGS_FOR_BUILD)
35 noinst_PROGRAMS = rpcgen
36 rpcgen_SOURCES = rpc_clntout.c rpc_cout.c rpc_hout.c rpc_main.c \
37 @@ -9,10 +11,6 @@
38 rpc_util.c rpc_sample.c rpc_output.h rpc_parse.h \
39 rpc_scan.h rpc_util.h
41 -rpcgen_CFLAGS=$(CFLAGS_FOR_BUILD)
42 -rpcgen_CPPLAGS=$(CPPFLAGS_FOR_BUILD)
43 -rpcgen_LDFLAGS=$(LDFLAGS_FOR_BUILD)
44 -rpcgen_LDADD=$(LIBTIRPC)
46 MAINTAINERCLEANFILES = Makefile.in
48 EXTRA_DIST = rpcgen.new.1