kamailio-5.x: run make cfg
authorSebastian Kemper <sebastian_ml@gmx.net>
Sun, 11 Feb 2018 18:29:19 +0000 (19:29 +0100)
committerSebastian Kemper <sebastian_ml@gmx.net>
Sun, 11 Feb 2018 18:31:33 +0000 (19:31 +0100)
The INSTALL file from kamailio suggests to make the target "cfg" first.
All settinggs will then be reused when make is called again.

This has the side effect that "$(FPIC)" can be dropped from CFLAGS as
the build system adds the flags automatically now.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
net/kamailio-5.x/Makefile

index 1fdacb70cb7c7054ff2157714f47c0857c5f2d11..1a65daf095d1f22711504a741dac08bcb2890da6 100644 (file)
@@ -25,7 +25,9 @@ include $(INCLUDE_DIR)/nls.mk
 include $(INCLUDE_DIR)/package.mk
 include $(TOPDIR)/feeds/packages/lang/python/python-host.mk
 
-TARGET_CFLAGS += $(FPIC) -DVERSION_NODATE=1
+# Build reproducibly
+TARGET_CFLAGS += -DVERSION_NODATE=1
+
 PREBUILT_STAMP=$(STAGING_DIR)/stamp/.$(PKG_NAME)_prebuilt
 TAR_CMD:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components 1 $(TAR_OPTIONS)
 
@@ -142,8 +144,9 @@ PKG_MAKE_ARGS:= \
        quiet=verbose
 
 define Build/Compile
-       $(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) all
-       $(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) install
+       $(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) cfg
+       $(MAKE) -C $(PKG_BUILD_DIR) quiet=verbose all
+       $(MAKE) -C $(PKG_BUILD_DIR) quiet=verbose install
 endef
 
 $(eval $(call BuildPackage,kamailio5))