equal
deleted
inserted
replaced
|
1 Generate shared libraries rather than a library archive. |
|
2 |
|
3 This patch should be sent upstream, but needs to be adjusted |
|
4 to be something that will be properly accepted (probably via |
|
5 a --enable-shared option from the configure script). |
|
6 |
|
7 --- yasm-1.3.0/configure.ac.orig 2015-07-08 11:36:32.537084287 -0700 |
|
8 +++ yasm-1.3.0/configure.ac 2015-07-08 11:38:18.439233048 -0700 |
|
9 @@ -73,9 +73,11 @@ |
|
10 AC_PROG_CC_STDC |
|
11 AC_PROG_INSTALL |
|
12 AC_PROG_LN_S |
|
13 -#automake default ARFLAGS to "cru" |
|
14 -AC_CHECK_TOOLS(AR,[$AR ar],[ar]) |
|
15 -AC_PROG_RANLIB |
|
16 + |
|
17 +# Build shared libraries. |
|
18 +AC_ENABLE_SHARED |
|
19 +AC_DISABLE_STATIC |
|
20 +LT_INIT |
|
21 |
|
22 # REQUIRE a standard (ANSI/ISO) C compiler |
|
23 if test "$ac_cv_prog_cc_stdc" = no; then |
|
24 --- yasm-1.3.0/Makefile.am.orig 2015-07-08 11:00:30.653026790 -0700 |
|
25 +++ yasm-1.3.0/Makefile.am 2015-07-08 11:00:23.376352265 -0700 |
|
26 @@ -42,9 +42,13 @@ |
|
27 include tools/Makefile.inc |
|
28 |
|
29 YASM_MODULES = |
|
30 -lib_LIBRARIES = libyasm.a |
|
31 -libyasm_a_SOURCES = |
|
32 -nodist_libyasm_a_SOURCES = |
|
33 +lib_LTLIBRARIES = libyasm.la |
|
34 +libyasm_la_SOURCES = |
|
35 +nodist_libyasm_la_SOURCES = |
|
36 +libyasm_la_CFLAGS=-fPIC |
|
37 +libyasm_la_CPPFLAGS=-fPIC |
|
38 +libyasm_la_CXXFLAGS=-fPIC |
|
39 +libyasm_la_LDFLAGS= -shared -fPIC -version-info 0:0:0 |
|
40 include modules/Makefile.inc |
|
41 |
|
42 include libyasm/Makefile.inc |