diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-07-27 09:13:00 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-07-27 09:13:00 +0000 |
commit | 6318885fcd52e51b513386ef2365123d767cd8b5 (patch) | |
tree | cb83c09d8e9eada5c32f85ca400c6807e4c56b69 /make | |
parent | 3aff447b6114ae52c4622e208256da2220e13f0e (diff) |
Lets try that again...
Diffstat (limited to 'make')
-rw-r--r-- | make/valgrind.mk | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/make/valgrind.mk b/make/valgrind.mk index 13230d996..81b11b251 100644 --- a/make/valgrind.mk +++ b/make/valgrind.mk @@ -7,6 +7,7 @@ VALGRIND_SITE:=http://developer.kde.org/~sewardj VALGRIND_DIR:=$(BUILD_DIR)/valgrind-1.0pre6 VALGRIND_SOURCE:=valgrind-1.0pre6.tar.bz2 +VALGRIND_PATCH:=$(SOURCE_DIR)/valgrind.patch $(DL_DIR)/$(VALGRIND_SOURCE): wget -P $(DL_DIR) --passive-ftp $(VALGRIND_SITE)/$(VALGRIND_SOURCE) @@ -15,7 +16,11 @@ $(VALGRIND_DIR)/.unpacked: $(DL_DIR)/$(VALGRIND_SOURCE) bzcat $(DL_DIR)/$(VALGRIND_SOURCE) | tar -C $(BUILD_DIR) -xvf - touch $(VALGRIND_DIR)/.unpacked -$(VALGRIND_DIR)/.configured: $(VALGRIND_DIR)/.unpacked +$(VALGRIND_DIR)/.patched: $(VALGRIND_DIR)/.unpacked + cat $(VALGRIND_PATCH) | patch -d $(VALGRIND_DIR) -p1 + touch $(VALGRIND_DIR)/.patched + +$(VALGRIND_DIR)/.configured: $(VALGRIND_DIR)/.patched (cd $(VALGRIND_DIR); rm -rf config.cache; CC=$(TARGET_CC1) \ AR=$(TARGET_CROSS)ar NM=$(TARGET_CROSS)nm \ LD=$(TARGET_CROSS)ld AS=$(TARGET_CROSS)as \ @@ -28,7 +33,7 @@ $(VALGRIND_DIR)/.configured: $(VALGRIND_DIR)/.unpacked $(VALGRIND_DIR)/valgrind: $(VALGRIND_DIR)/.configured make CC=$(TARGET_CC1) -C $(VALGRIND_DIR) - $(STRIP) $(VALGRIND_DIR)/valgrind + -$(STRIP) --strip-unneeded $(VALGRIND_DIR)/*.so* $(TARGET_DIR)/usr/bin/valgrind: $(VALGRIND_DIR)/valgrind make CC=$(TARGET_CC1) DESTDIR=$(TARGET_DIR) -C $(VALGRIND_DIR) install |