fix valgrind on ppc

git-svn-id: svn://svn.openwrt.org/openwrt/packages@12330 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2008-08-17 11:49:31 +00:00
parent ccbcc31be2
commit 9ee4ea6716
2 changed files with 12 additions and 1 deletions

View File

@ -47,10 +47,18 @@ CONFIGURE_ARGS += \
DEFAULT_SUPP += "uclibc.supp"
define Build/Compile
define Build/Compile
$(TARGET_CC) $(TARGET_CFLAGS) -c -o $(PKG_BUILD_DIR)/abort.o ./src/abort.c
$(TARGET_CROSS)ar rcu $(PKG_BUILD_DIR)/abort.a $(PKG_BUILD_DIR)/abort.o
$(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \
DESTDIR="$(PKG_INSTALL_DIR)" \
CFLAGS="$(TARGET_CFLAGS)" \
AM_CFLAGS_X86_LINUX="$(TARGET_CFLAGS)" \
AM_CFLAGS_AMD64_LINUX="$(TARGET_CFLAGS)" \
AM_CFLAGS_PPC32_LINUX="$(TARGET_CFLAGS)" \
AM_CFLAGS_PPC64_LINUX="$(TARGET_CFLAGS)" \
TOOL_LDADD_COMMON="-lgcc $(PKG_BUILD_DIR)/abort.a" \
all install
endef

View File

@ -0,0 +1,3 @@
void abort(void)
{
}