Index: uspace/Makefile.common
===================================================================
--- uspace/Makefile.common	(revision 3375bd4db69b0aa8eb7d3766620c112904c2dab3)
+++ uspace/Makefile.common	(revision 6bfaab552b3539dda0ec53d173564bce19472b6b)
@@ -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)
