diff -ru Makefile.rules.orig Makefile.rules
--- Makefile.rules.orig	2010-05-05 13:42:30.000000000 -0700
+++ Makefile.rules	2010-05-05 13:49:13.000000000 -0700
@@ -574,6 +574,11 @@
   endif
 endif
 
+# workaround the bug when on FreeBSD shared library link fails with unknown '__assert' symbol
+ifeq ($(TARGET_OS),FreeBSD)
+    SharedLinkOptions += -lc
+endif
+
 ifeq ($(TARGET_OS),Darwin)
   ifneq ($(ARCH),ARM)
     TargetCommonOpts += -mmacosx-version-min=$(DARWIN_VERSION)
