Index: uspace/Makefile.common
===================================================================
--- uspace/Makefile.common	(revision c7c244309581dbed7505cfcd7e240c0a85a2cdd8)
+++ uspace/Makefile.common	(revision a60afd05e3a2727ab42c7e9e513d204ade5bd7f2)
@@ -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)
