summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/binutils/Makefile4
-rw-r--r--package/oprofile/Makefile2
2 files changed, 6 insertions, 0 deletions
diff --git a/package/binutils/Makefile b/package/binutils/Makefile
index 0faaece8e..f37400138 100644
--- a/package/binutils/Makefile
+++ b/package/binutils/Makefile
@@ -39,6 +39,10 @@ XAKE_FLAGS+= GCC_HONOUR_COPTS=s
libbfd-install:
${INSTALL_DIR} ${IDIR_LIBBFD}/usr/lib
$(CP) ${WRKINST}/usr/lib/*.so* ${IDIR_LIBBFD}/usr/lib
+ # for oprofile
+ ${INSTALL_DIR} ${STAGING_TARGET_DIR}/usr/lib/binutils
+ $(CP) ${WRKBUILD}/libiberty/libiberty.a \
+ ${STAGING_TARGET_DIR}/usr/lib/binutils
binutils-install:
${INSTALL_DIR} ${IDIR_BINUTILS}/usr/bin
diff --git a/package/oprofile/Makefile b/package/oprofile/Makefile
index f14d8c721..dbb2cf3cc 100644
--- a/package/oprofile/Makefile
+++ b/package/oprofile/Makefile
@@ -26,6 +26,8 @@ include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,OPROFILE,oprofile,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
TARGET_LDFLAGS+= -lpthread
+CONFIGURE_ARGS+= --with-binutils-libname=binutils \
+ --with-binutils=${STAGING_TARGET_DIR}/usr/lib
oprofile-install:
$(INSTALL_DIR) $(IDIR_OPROFILE)/usr/{bin,share}