diff -Naur libffi/Makefile.am b/Makefile.am
--- libffi/Makefile.am	2014-11-12 06:00:59.000000000 -0600
+++ b/Makefile.am	2015-12-23 15:57:10.363148806 -0600
@@ -249,7 +249,7 @@
 AM_CFLAGS += -DFFI_DEBUG
 endif
 
-libffi_la_LDFLAGS = -no-undefined -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LTLDFLAGS) $(AM_LTLDFLAGS)
+libffi_la_LDFLAGS = -no-undefined -avoid-version $(LTLDFLAGS) $(AM_LTLDFLAGS)
 
 AM_CPPFLAGS = -I. -I$(top_srcdir)/include -Iinclude -I$(top_srcdir)/src
 AM_CCASFLAGS = $(AM_CPPFLAGS)
