diff --git a/package/uhttpd/Makefile b/package/uhttpd/Makefile
index c333660d57f937e2797277a8fa86081be2b33454..e0e567af45d1b43bc9bdedb3da2b3fb67e1011a9 100644
--- a/package/uhttpd/Makefile
+++ b/package/uhttpd/Makefile
@@ -92,7 +92,7 @@ endef
 
 
 TARGET_CFLAGS += $(TLS_CFLAGS)
-TARGET_LDFLAGS += $(TLS_LDFLAGS) -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
+TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
 MAKE_VARS += \
 	FPIC="$(FPIC)" \
 	LUA_SUPPORT="$(if $(CONFIG_PACKAGE_uhttpd-mod-lua),1)" \