红联Linux门户
Linux帮助

怎?才能通?修改Makefile,??distcc??

发布时间:2013-10-11 17:58:28来源:红联作者:peng6662001
我使用make -j4 CC=distcc?行??.
distccmon-text可以??到distcc?行.但我在Makefile里直接?置CC = distcc,使用make -j4??有效果,不?使用distcc??.
另外,-j4 ??功能可以通?修改Makefile做到??
我想??只用make?行??,就包含-j4和CC=distcc的功能.

?有
???程中打印如下信息.
gcc -g -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wdeclaration-after-
statement -fno-common -fPIC -o dbus-cleanup-sockets dbus-cleanup-sockets.o

我知道????是怎??的
CFLAGS = -g -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wdeclaration-after-statement -fno-common -fPIC

但怎?做到gcc前加distcc.使??命令形如:
distcc gcc -g -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wdeclaration-after-
statement -fno-common -fPIC -o dbus-cleanup-sockets dbus-cleanup-sockets.o

????就不用再make?加CC=distcc了.
文章评论

共有 0 条评论