oops, we only want to affect local CFLAGS
No binary (build failed)
—
(log yok)
| @@ -23,7 +23,7 @@ E2FSPROGS_DIR:=$(top_builddir)/e2fsprogs/ | |
| endif | |
| srcdir=$(top_srcdir)/e2fsprogs | |
| - | CFLAGS += -I$(E2FSPROGS_DIR) -include $(E2FSPROGS_DIR)e2fsbb.h |
| + | E2FSPROGS_CFLAGS := -I$(E2FSPROGS_DIR) -include $(E2FSPROGS_DIR)e2fsbb.h |
| E2P_SRC := fgetsetflags.c fgetsetversion.c pf.c iod.c | |
| E2P_SRCS := $(patsubst %,e2p/%, $(E2P_SRC)) | |
| @@ -40,4 +40,4 @@ $(E2FSPROGS_DIR)$(E2FSPROGS_AR): $(patsubst %,$(E2FSPROGS_DIR)%, $(E2FSPROGS-y)) | |
| $(AR) -ro $@ $(patsubst %,$(E2FSPROGS_DIR)%, $(E2FSPROGS-y)) | |
| $(E2FSPROGS_DIR)%.o: $(srcdir)/%.c | |
| - | $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $< |
| + | $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(E2FSPROGS_CFLAGS) -c -o $@ $< |