Hello everyone,

How can I compile valgrind for x64bit? 

I attached current used make file for compiling. Any tips, suggest or help 
would be most welcome.


Thanks&Regards,
Behzat
#
# Valgrind - http://valgrind.org/
#
# Valgrind is an award-winning suite of tools for debugging and profiling
# Linux programs. With the tools that come with Valgrind, you can
# automatically detect many memory management and threading bugs, avoiding
# hours of frustrating bug-hunting, making your programs more stable. You can
# also perform detailed profiling, to speed up and reduce memory use of your
# programs.
#
# The Valgrind distribution currently includes three tools: a memory error
# detectors, a cache (time) profiler and a heap (space) profiler.
#
# Valgrind is Open Source / Free Software, and is freely available under the
# GNU General Public License.
#

LOCAL_PKG_VERSION := 3.5.0
ifeq ("$(PKG_VERSION)","")
PKG_VERSION := $(LOCAL_PKG_VERSION)
endif

PKG_NAME    := valgrind
REL_SRCDIR  := $(PKG_NAME)-$(LOCAL_PKG_VERSION)
config      := yes
INST_OPTS   := DESTDIR=$(ROOT)

ifneq (,$(findstring $(FAM),powerpc_970 powverpc_e500v2 powerpc_7400))
        CONFIG_OPT_TARGET := --build=powerpc-linux
endif

CONFIG_OPTS := --prefix=/usr --enable-tls $(CONFIG_OPT_TARGET)

BLD_OPTS := LDFLAGS="$(LDFLAGS) -zexecstack"

NO_PARALLEL := Y
                                                                                
include $(NTMK_LOCAL_MKDIR)/common/thirdparty.mk

# Special rules, not covered by thirdparty.mk.
# Cleans up the makefiles for the static analysis tool
$(SRCDIR)/.pkg-local-preconfig: $(SRCDIR)/.pkg-preconfig
        for x in `find $(SRCDIR) -name Makefile.in`; do mv $${x} $${x}.orig; \
         echo "Forcing CC= to be quoted in $${x}, setting AR to $(AR), and 
setting CCLD to $(CCLD)"; \
         cat $${x}.orig | sed 's,CC=.(CC),CC="$(CC)",' | sed 
's,^AR.*=.*ar,AR=$(AR),' | sed 's,^CCLD.*=.*,CCLD=$(CCLD),' > $${x} || exit 1; \
        chmod +w $${x}; \
        done
        mv $(SRCDIR)/VEX/Makefile $(SRCDIR)/VEX/Makefile.orig
        cat $(SRCDIR)/VEX/Makefile.orig | sed 's,\tar ,\t$(AR) ,' > 
$(SRCDIR)/VEX/Makefile || exit 1
        touch $@

$(SRCDIR)/.pkg-config: $(SRCDIR)/.pkg-local-preconfig
------------------------------------------------------------------------------
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to