summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index dc7c924..b9ae654 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -71,7 +71,9 @@ endif # !no_libc
$(ARCH)/%.o: %.c
$(COMPILE.c) -Iglob $< $(OUTPUT_OPTION)
$(ARCH)/glob/libglob.a:
- $(MAKE) -C $(@D) $(@F)
+ $(MAKE) -C $(@D) $(@F) \
+ CC='$(CC)' CFLAGS='$(CFLAGS) -I..' \
+ CPPFLAGS='$(CPPFLAGS) -DHAVE_CONFIG_H'
.PHONY: $(ARCH)/glob/libglob.a
objs := $(addprefix $(ARCH)/,$(objs))
prog := $(ARCH)/make