summaryrefslogtreecommitdiff
path: root/package/libusb
diff options
context:
space:
mode:
Diffstat (limited to 'package/libusb')
-rw-r--r--package/libusb/Makefile6
-rw-r--r--package/libusb/patches/patch-ltmain_sh11
2 files changed, 12 insertions, 5 deletions
diff --git a/package/libusb/Makefile b/package/libusb/Makefile
index 4358bc720..189329275 100644
--- a/package/libusb/Makefile
+++ b/package/libusb/Makefile
@@ -27,11 +27,7 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,LIBUSB,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
$(eval $(call PKG_template,LIBUSB_DEV,${PKG_NAME}-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBUSB_DEV},${PKGSC_LIBUSB_DEV},${PKG_OPTS}))
-SUB_INSTALLS-y:=
-SUB_INSTALLS-m:=
-SUB_INSTALLS-${ADK_PACKAGE_LIBUSB_DEV}+= libusb-dev-install
-
-post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
+post-install:
${INSTALL_DIR} ${IDIR_LIBUSB}/usr/lib
${CP} ${WRKINST}/usr/lib/libusb*.so* ${IDIR_LIBUSB}/usr/lib/
diff --git a/package/libusb/patches/patch-ltmain_sh b/package/libusb/patches/patch-ltmain_sh
new file mode 100644
index 000000000..7ac5092b0
--- /dev/null
+++ b/package/libusb/patches/patch-ltmain_sh
@@ -0,0 +1,11 @@
+--- libusb-1.0.8.orig/ltmain.sh 2010-05-05 00:02:07.000000000 +0200
++++ libusb-1.0.8/ltmain.sh 2011-01-14 19:20:50.000000000 +0100
+@@ -4765,7 +4765,7 @@ func_mode_link ()
+ # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
+ # @file GCC response files
+ -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
+- -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
++ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-fstack-protector*|-flto)
+ func_quote_for_eval "$arg"
+ arg="$func_quote_for_eval_result"
+ func_append compile_command " $arg"