--- ./src/ld/parsers/lto_file.cpp.orig	2020-01-26 12:28:10.000000000 -0800
+++ ./src/ld/parsers/lto_file.cpp	2020-01-26 12:28:38.000000000 -0800
@@ -1681,7 +1681,11 @@
 //
 unsigned int runtime_api_version()
 {
+#if LTO_API_VERSION >= 17
 	return ::lto_api_version();
+#else
+	return LTO_API_VERSION;
+#endif
 }
 
 
