valgrind: fix libgcc linking
authorFelix Fietkau <nbd@openwrt.org>
Wed, 2 Mar 2011 12:03:46 +0000 (12:03 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 2 Mar 2011 12:03:46 +0000 (12:03 +0000)
SVN-Revision: 25824

utils/valgrind/Makefile

index a07f4653c524632e8a1f077da8f568c6dc57aadc..695e93557db8a2136f3bd302e82ee8fb997deaf8 100644 (file)
@@ -57,7 +57,7 @@ define Build/Compile
                AM_CFLAGS_AMD64_LINUX="$(TARGET_CFLAGS) -I$(PKG_BUILD_DIR)/coregrind" \
                AM_CFLAGS_PPC32_LINUX="$(TARGET_CFLAGS) -I$(PKG_BUILD_DIR)/coregrind" \
                AM_CFLAGS_PPC64_LINUX="$(TARGET_CFLAGS) -I$(PKG_BUILD_DIR)/coregrind" \
-               TOOL_LDADD_COMMON="-lgcc $(PKG_BUILD_DIR)/abort.a" \
+               TOOL_LDADD_COMMON="$(LIBGCC_S) $(PKG_BUILD_DIR)/abort.a" \
                all install
 endef