Index: uspace/Makefile.common
===================================================================
--- uspace/Makefile.common	(revision 3375bd4db69b0aa8eb7d3766620c112904c2dab3)
+++ uspace/Makefile.common	(revision 0dd3e498af91491a8e5cdafa529a40b6d1dfa610)
@@ -131,4 +131,9 @@
 	endif
 endif
+# Build static whenever we use libusb because that library uses 
+# thread local variables
+ifneq ($(findstring usb, $(LIBS)),)
+	STATIC_BUILD = y
+endif
 
 ifeq ($(STATIC_BUILD), y)
