Signed-off-by: Alexandru Ardelean <aa@ocedo.com>
Backport of r41934
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@41974
3c298f89-4303-0410-b956-
a3cf2f4a3e73
define Package/valgrind
SECTION:=devel
CATEGORY:=Development
define Package/valgrind
SECTION:=devel
CATEGORY:=Development
- DEPENDS:=@mips||mipsel||i386||powerpc||arm_v7 +libpthread +librt
+ DEPENDS:=@mips||mipsel||i386||x86_64||powerpc||arm_v7 +libpthread +librt
TITLE:=debugging and profiling tools for Linux
URL:=http://www.valgrind.org
endef
TITLE:=debugging and profiling tools for Linux
URL:=http://www.valgrind.org
endef
to speed up and reduce memory use of your programs.
endef
to speed up and reduce memory use of your programs.
endef
-CPU := $(patsubst x86,i386,$(LINUX_KARCH))
+CPU := $(patsubst x86_64,amd64,$(patsubst x86,i386,$(LINUX_KARCH)))
CONFIGURE_VARS += \
UNAME_R=$(LINUX_VERSION)
CONFIGURE_VARS += \
UNAME_R=$(LINUX_VERSION)
+ifeq ($(ARCH),x86_64)
+ BITS := 64bit
+else
+ CONFIGURE_ARGS += \
+ --enable-only32bit
+ BITS := 32bit
+endif
+
--enable-tls \
--without-x \
--without-uiout \
--enable-tls \
--without-x \
--without-uiout \
$(PKG_INSTALL_DIR)/usr/lib/valgrind/none-* \
$(PKG_INSTALL_DIR)/usr/lib/valgrind/vgpreload_core*.so \
$(PKG_INSTALL_DIR)/usr/lib/valgrind/$(CPU)-*.xml \
$(PKG_INSTALL_DIR)/usr/lib/valgrind/none-* \
$(PKG_INSTALL_DIR)/usr/lib/valgrind/vgpreload_core*.so \
$(PKG_INSTALL_DIR)/usr/lib/valgrind/$(CPU)-*.xml \
- $(PKG_INSTALL_DIR)/usr/lib/valgrind/32bit-core*.xml \
- $(PKG_INSTALL_DIR)/usr/lib/valgrind/32bit-linux*.xml \
+ $(PKG_INSTALL_DIR)/usr/lib/valgrind/$(BITS)-core*.xml \
+ $(PKG_INSTALL_DIR)/usr/lib/valgrind/$(BITS)-linux*.xml \
$(PKG_INSTALL_DIR)/usr/lib/valgrind/memcheck-* \
$(PKG_INSTALL_DIR)/usr/lib/valgrind/vgpreload_memcheck*.so \
$(1)/usr/lib/valgrind/
$(PKG_INSTALL_DIR)/usr/lib/valgrind/memcheck-* \
$(PKG_INSTALL_DIR)/usr/lib/valgrind/vgpreload_memcheck*.so \
$(1)/usr/lib/valgrind/