5126N/AGenerate shared libraries rather than a library archive.
5126N/A
5126N/AThis patch should be sent upstream, but needs to be adjusted
5126N/Ato be something that will be properly accepted (probably via
5126N/Aa --enable-shared option from the configure script).
5126N/A
5126N/A--- yasm-1.3.0/configure.ac.orig 2015-07-08 11:36:32.537084287 -0700
5126N/A+++ yasm-1.3.0/configure.ac 2015-07-08 11:38:18.439233048 -0700
5126N/A@@ -73,9 +73,11 @@
5126N/A AC_PROG_CC_STDC
5126N/A AC_PROG_INSTALL
5126N/A AC_PROG_LN_S
5126N/A-#automake default ARFLAGS to "cru"
5126N/A-AC_CHECK_TOOLS(AR,[$AR ar],[ar])
5126N/A-AC_PROG_RANLIB
5126N/A+
5126N/A+# Build shared libraries.
5126N/A+AC_ENABLE_SHARED
5126N/A+AC_DISABLE_STATIC
5126N/A+LT_INIT
5126N/A
5126N/A # REQUIRE a standard (ANSI/ISO) C compiler
5126N/A if test "$ac_cv_prog_cc_stdc" = no; then
5126N/A--- yasm-1.3.0/Makefile.am.orig 2015-07-08 11:00:30.653026790 -0700
5126N/A+++ yasm-1.3.0/Makefile.am 2015-07-08 11:00:23.376352265 -0700
5126N/A@@ -42,9 +42,13 @@
5126N/A include tools/Makefile.inc
5126N/A
5126N/A YASM_MODULES =
5126N/A-lib_LIBRARIES = libyasm.a
5126N/A-libyasm_a_SOURCES =
5126N/A-nodist_libyasm_a_SOURCES =
5126N/A+lib_LTLIBRARIES = libyasm.la
5126N/A+libyasm_la_SOURCES =
5126N/A+nodist_libyasm_la_SOURCES =
5126N/A+libyasm_la_CFLAGS=-fPIC
5126N/A+libyasm_la_CPPFLAGS=-fPIC
5126N/A+libyasm_la_CXXFLAGS=-fPIC
5126N/A+libyasm_la_LDFLAGS= -shared -fPIC -version-info 0:0:0
5126N/A include modules/Makefile.inc
5126N/A
5126N/A include libyasm/Makefile.inc