about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--mk/reconfig.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/mk/reconfig.mk b/mk/reconfig.mk
index ea9039558ad..1a3a1774384 100644
--- a/mk/reconfig.mk
+++ b/mk/reconfig.mk
@@ -32,6 +32,12 @@ endif
 
 Makefile config.mk: config.stamp
 
+ifeq ($(SREL),)
+SREL_ROOT := ./
+else
+SREL_ROOT := $(SREL)
+endif
+
 config.stamp: $(S)configure $(S)Makefile.in $(S)src/snapshots.txt
 	@$(call E, cfg: reconfiguring)
-	$(SREL)configure $(CFG_CONFIGURE_ARGS)
+	$(SREL_ROOT)configure $(CFG_CONFIGURE_ARGS)