fix valgrind on ppc
git-svn-id: svn://svn.openwrt.org/openwrt/packages@12330 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
ccbcc31be2
commit
9ee4ea6716
@ -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
|
||||
|
||||
|
3
utils/valgrind/src/abort.c
Normal file
3
utils/valgrind/src/abort.c
Normal file
@ -0,0 +1,3 @@
|
||||
void abort(void)
|
||||
{
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user