--- a/src/jrmath/Makefile.am
+++ b/src/jrmath/Makefile.am
@@ -1,6 +1,6 @@
 lib_LTLIBRARIES = libjrmath.la
 
-libjrmath_la_CPPFLAGS = -I$(top_srcdir)/src/include
+libjrmath_la_CPPFLAGS = -I$(top_srcdir)/src/include -DMATHLIB_STANDALONE
 
 libjrmath_la_LDFLAGS = -no-undefined -version-info 0:0:0