aaffd209fa
To be consistent with the recent change of FOO_MAKE_OPT into FOO_MAKE_OPTS, make the same change for FOO_CONF_OPT. Sed command used: find * -type f | xargs sed -i 's#_CONF_OPT\>#&S#g' Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
55 lines
1.5 KiB
Makefile
55 lines
1.5 KiB
Makefile
################################################################################
|
|
#
|
|
# dmalloc
|
|
#
|
|
################################################################################
|
|
|
|
DMALLOC_VERSION = 5.4.3
|
|
DMALLOC_SOURCE = dmalloc-$(DMALLOC_VERSION).tgz
|
|
DMALLOC_SITE = http://dmalloc.com/releases
|
|
|
|
DMALLOC_LICENSE = MIT-like
|
|
# license is in each file, dmalloc.h.1 is the smallest one
|
|
DMALLOC_LICENSE_FILES = dmalloc.h.1
|
|
|
|
DMALLOC_INSTALL_STAGING = YES
|
|
DMALLOC_CONF_OPTS = --enable-shlib
|
|
|
|
ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
|
|
DMALLOC_CONF_OPTS += --enable-cxx
|
|
else
|
|
DMALLOC_CONF_OPTS += --disable-cxx
|
|
endif
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
|
DMALLOC_CONF_OPTS += --enable-threads
|
|
else
|
|
DMALLOC_CONF_OPTS += --disable-threads
|
|
endif
|
|
|
|
define DMALLOC_POST_PATCH
|
|
$(SED) 's/^ac_cv_page_size=0$$/ac_cv_page_size=12/' $(@D)/configure
|
|
$(SED) 's/(ld -/($${LD-ld} -/' $(@D)/configure
|
|
$(SED) 's/'\''ld -/"$${LD-ld}"'\'' -/' $(@D)/configure
|
|
$(SED) 's/ar cr/$$(AR) cr/' $(@D)/Makefile.in
|
|
endef
|
|
|
|
DMALLOC_POST_PATCH_HOOKS += DMALLOC_POST_PATCH
|
|
|
|
# both DESTDIR and PREFIX are ignored..
|
|
define DMALLOC_INSTALL_STAGING_CMDS
|
|
$(MAKE) includedir="$(STAGING_DIR)/usr/include" \
|
|
bindir="$(STAGING_DIR)/usr/bin" \
|
|
libdir="$(STAGING_DIR)/usr/lib" \
|
|
shlibdir="$(STAGING_DIR)/usr/lib" \
|
|
infodir="$(STAGING_DIR)/usr/share/info/" \
|
|
-C $(@D) install
|
|
endef
|
|
|
|
define DMALLOC_INSTALL_TARGET_CMDS
|
|
cp -dpf $(STAGING_DIR)/usr/lib/libdmalloc*.so $(TARGET_DIR)/usr/lib
|
|
cp -dpf $(STAGING_DIR)/usr/bin/dmalloc $(TARGET_DIR)/usr/bin/dmalloc
|
|
endef
|
|
|
|
$(eval $(autotools-package))
|