do not ignore build failures in subdirs of iproute2
if a file fails to compile in a subdir of iproute2 fails (say "tunnel.c" in
the "ip" dir), the top level makefile does not abort:
all: Config
@for i in $(SUBDIRS); \
do $(MAKE) $(MFLAGS) -C $$i; done
the attached patch inserts a 'set -e' so that if the $(MAKE) fails, the all
target fails as well
-mike
This commit is contained in:
parent
892db6942a
commit
95dd595049
3
Makefile
3
Makefile
|
|
@ -32,7 +32,8 @@ SUBDIRS=lib ip tc misc netem genl
|
|||
LIBNETLINK=../lib/libnetlink.a ../lib/libutil.a
|
||||
|
||||
all: Config
|
||||
@for i in $(SUBDIRS); \
|
||||
@set -e; \
|
||||
for i in $(SUBDIRS); \
|
||||
do $(MAKE) $(MFLAGS) -C $$i; done
|
||||
|
||||
Config:
|
||||
|
|
|
|||
21
tc/m_ipt.c
21
tc/m_ipt.c
|
|
@ -36,24 +36,9 @@
|
|||
#include <fcntl.h>
|
||||
#include <sys/wait.h>
|
||||
|
||||
const char *pname = "tc-ipt";
|
||||
const char *tname = "mangle";
|
||||
const char *pversion = "0.1";
|
||||
|
||||
#ifndef TRUE
|
||||
#define TRUE 1
|
||||
#endif
|
||||
#ifndef FALSE
|
||||
#define FALSE 0
|
||||
#endif
|
||||
|
||||
#ifndef IPT_LIB_DIR
|
||||
#define IPT_LIB_DIR "/usr/local/lib/iptables"
|
||||
#endif
|
||||
|
||||
#ifndef PROC_SYS_MODPROBE
|
||||
#define PROC_SYS_MODPROBE "/proc/sys/kernel/modprobe"
|
||||
#endif
|
||||
static const char *pname = "tc-ipt";
|
||||
static const char *tname = "mangle";
|
||||
static const char *pversion = "0.1";
|
||||
|
||||
static const char *ipthooks[] = {
|
||||
"NF_IP_PRE_ROUTING",
|
||||
|
|
|
|||
Loading…
Reference in New Issue