kamailio-5.x: run make cfg

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>
This commit is contained in:
Sebastian Kemper 2018-02-11 19:29:19 +01:00
parent fbf862318f
commit 0d8d91c39b

View 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))