mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-10 00:04:06 -09:00
execline is written against POSIX C and automatically sets
-D_POSIX_C_SOURCE=200809L and -D_XOPEN_SOURCE=700. uclibc had a bug
consistent with the error reported in the commit that added
-D_GNU_SOURCE[1], but it has since been fixed[2].
[1]: see commit 106e43e303 ("package/execline: fix uclibc build")
[2]: https://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/commit/?id=354129807db12c792696b74d0cd38f2c5d2fd704
Signed-off-by: J. Neuschäfer <j.neuschaefer@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
73 lines
2.0 KiB
Makefile
73 lines
2.0 KiB
Makefile
################################################################################
|
|
#
|
|
# execline
|
|
#
|
|
################################################################################
|
|
|
|
EXECLINE_VERSION = 2.9.6.1
|
|
EXECLINE_SITE = https://skarnet.org/software/execline
|
|
EXECLINE_LICENSE = ISC
|
|
EXECLINE_LICENSE_FILES = COPYING
|
|
EXECLINE_INSTALL_STAGING = YES
|
|
EXECLINE_DEPENDENCIES = skalibs
|
|
|
|
EXECLINE_CONF_OPTS = \
|
|
--with-sysdeps=$(STAGING_DIR)/usr/lib/skalibs/sysdeps \
|
|
--with-include=$(STAGING_DIR)/include \
|
|
--with-dynlib=$(STAGING_DIR)/lib \
|
|
--with-lib=$(STAGING_DIR)/lib/skalibs \
|
|
$(if $(BR2_STATIC_LIBS),,--disable-allstatic) \
|
|
$(if $(BR2_PACKAGE_EXECLINE_MULTICALL),--enable-multicall,) \
|
|
$(SHARED_STATIC_LIBS_OPTS)
|
|
|
|
define EXECLINE_CONFIGURE_CMDS
|
|
(cd $(@D); $(TARGET_CONFIGURE_OPTS) ./configure $(EXECLINE_CONF_OPTS))
|
|
endef
|
|
|
|
define EXECLINE_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
|
|
endef
|
|
|
|
define EXECLINE_REMOVE_STATIC_LIB_DIR
|
|
rm -rf $(TARGET_DIR)/usr/lib/execline
|
|
endef
|
|
|
|
EXECLINE_POST_INSTALL_TARGET_HOOKS += EXECLINE_REMOVE_STATIC_LIB_DIR
|
|
|
|
define EXECLINE_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
|
|
endef
|
|
|
|
define EXECLINE_INSTALL_STAGING_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install
|
|
endef
|
|
|
|
HOST_EXECLINE_DEPENDENCIES = host-skalibs
|
|
|
|
# Set --shebangdir to /usr/bin, as this value is used by the host variant of
|
|
# s6-rc when generating execline scripts for the target.
|
|
HOST_EXECLINE_CONF_OPTS = \
|
|
--prefix=$(HOST_DIR) \
|
|
--shebangdir=/usr/bin \
|
|
--with-sysdeps=$(HOST_DIR)/lib/skalibs/sysdeps \
|
|
--with-include=$(HOST_DIR)/include \
|
|
--with-dynlib=$(HOST_DIR)/lib \
|
|
--disable-static \
|
|
--enable-shared \
|
|
--disable-allstatic
|
|
|
|
define HOST_EXECLINE_CONFIGURE_CMDS
|
|
(cd $(@D); $(HOST_CONFIGURE_OPTS) ./configure $(HOST_EXECLINE_CONF_OPTS))
|
|
endef
|
|
|
|
define HOST_EXECLINE_BUILD_CMDS
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D)
|
|
endef
|
|
|
|
define HOST_EXECLINE_INSTALL_CMDS
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) install
|
|
endef
|
|
|
|
$(eval $(generic-package))
|
|
$(eval $(host-generic-package))
|