From 77670602e4724ddacea74cea460c330319cd8019 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Sun, 24 Aug 2014 16:23:56 +0200 Subject: [PATCH] libusb: only require libgcc_s when using gcc4. * Gcc2 does not provide this library, this would make the libusb package not installable. --- dev-libs/libusb/libusb-1.0.19.recipe | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dev-libs/libusb/libusb-1.0.19.recipe b/dev-libs/libusb/libusb-1.0.19.recipe index 161e4c7da..89cb9ce54 100644 --- a/dev-libs/libusb/libusb-1.0.19.recipe +++ b/dev-libs/libusb/libusb-1.0.19.recipe @@ -41,8 +41,14 @@ PROVIDES=" REQUIRES=" haiku$secondaryArchSuffix >= $haikuVersion lib:libstdc++$secondaryArchSuffix - lib:libgcc_s$secondaryArchSuffix " + +if [ $effectiveTargetArchitecture != x86_gcc2 ]; then +REQUIRES+=" + lib:libgcc_s$secondaryArchSuffix +" +fi + BUILD_REQUIRES=" " BUILD_PREREQUIRES="