prosody: refactor with PROSODY_CONF_OPTS variable
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> [Thomas: keep TARGET_CONFIGURE_OPTS in the environment.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
13b02de464
commit
918e5a45c0
@ -18,16 +18,19 @@ ifeq ($(BR2_PACKAGE_LUAJIT),y)
|
||||
PROSODY_DEPENDENCIES += luajit
|
||||
endif
|
||||
|
||||
PROSODY_CONF_OPTS = \
|
||||
--with-lua=$(STAGING_DIR)/usr \
|
||||
--c-compiler=$(TARGET_CC) \
|
||||
--cflags="$(TARGET_CFLAGS)" \
|
||||
--linker=$(TARGET_CC) \
|
||||
--ldflags="$(TARGET_LDFLAGS) -shared" \
|
||||
--sysconfdir=/etc/prosody \
|
||||
--prefix=/usr
|
||||
|
||||
define PROSODY_CONFIGURE_CMDS
|
||||
cd $(@D) && \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
./configure --prefix=/usr \
|
||||
--c-compiler=$(TARGET_CC) \
|
||||
--cflags="$(TARGET_CFLAGS)" \
|
||||
--linker=$(TARGET_CC) \
|
||||
--ldflags="$(TARGET_LDFLAGS) -shared" \
|
||||
--sysconfdir=/etc/prosody \
|
||||
--with-lua=$(STAGING_DIR)/usr
|
||||
./configure $(PROSODY_CONF_OPTS)
|
||||
endef
|
||||
|
||||
define PROSODY_BUILD_CMDS
|
||||
|
Loading…
Reference in New Issue
Block a user