1 # Copyright (C) 2008-2014 OpenWrt.org
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
8 # env LD_PRELOAD="/usr/lib/libptmalloc3.so" <application>
10 include $(TOPDIR)/rules.mk
12 PKG_NAME:=libptmalloc3
15 PKG_BUILD_DIR:=$(BUILD_DIR)/ptmalloc3
17 PKG_SOURCE:=ptmalloc3-current.tar.gz
18 PKG_SOURCE_URL:=http://www.malloc.de/malloc/
19 PKG_MD5SUM:=c0b9dd5f16f8eae979166dc74b60015c
21 include $(INCLUDE_DIR)/package.mk
23 define Package/libptmalloc3
26 TITLE:=Efficient malloc implementation
27 URL:=http://www.malloc.de/en/
30 # flags: taken from ptmalloc3/Makefile by combining
31 # 'linux-shared' and 'linux-nothreads' targets
33 $(MAKE) -C $(PKG_BUILD_DIR) \
34 $(TARGET_CONFIGURE_OPTS) \
35 OPT_FLAGS="$(TARGET_CFLAGS)" \
36 linux-shared-nothreads
39 define Package/libptmalloc3/install
40 $(INSTALL_DIR) $(1)/usr/lib
41 $(CP) $(PKG_BUILD_DIR)/libptmalloc3.so $(1)/usr/lib/
44 $(eval $(call BuildPackage,libptmalloc3))