diff --git a/build/make/rtcd.sh b/build/make/rtcd.sh
index ed037132af2dc578bca5c601af00eb7c30739894..93c9adcac4c9e2dc2cfbe067a1c831e0bf1ba8c1 100755
--- a/build/make/rtcd.sh
+++ b/build/make/rtcd.sh
@@ -333,6 +333,7 @@ EOF
 #
 # Main Driver
 #
+ALL_FUNCS=$(export LC_ALL=C; echo $ALL_FUNCS | tr ' ' '\n' | sort |tr '\n' ' ')
 require c
 case $arch in
   x86)