diff --git a/Makefile b/Makefile
index a3e7e511b50d4e522582f27919ab9d192a5bc8d5..b9d31bfebd9c9b4f9fc9a31c9e6c361b193c2e71 100644
--- a/Makefile
+++ b/Makefile
@@ -77,8 +77,9 @@ ifneq ($(wildcard makeopts),)
 endif
 
 # Some build systems, such as the one in openwrt, like to pass custom target
-# CFLAGS in the COPTS variable.
+# CFLAGS and LDFLAGS in the COPTS and LDOPTS variables.
 ASTCFLAGS+=$(COPTS)
+ASTLDFLAGS+=$(LDOPTS)
 
 #Uncomment this to see all build commands instead of 'quiet' output
 #NOISY_BUILD=yes