diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-03 03:40:24 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-03 03:40:24 +0000 |
commit | c2b0992156ccb65361eddd4c00d3a35593b0aaea (patch) | |
tree | d387c358a9facaef306eaba32c3851eb81fbce89 /configure.in | |
parent | e0515646b90043918b9fb1f3977e7648a8f1d9bd (diff) | |
download | ruby-c2b0992156ccb65361eddd4c00d3a35593b0aaea.tar.gz |
configure.in: fix static-linked-ext
* configure.in (--with-static-linked-ext): fix for extensions to
be linked statically.
* Makefile.in, common.mk: use ENCSTATIC for enc directory.
* ext/extmk.rb: supply dependencies of statically linked extension
libraries.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/configure.in b/configure.in index cc80aa72c1..36c58da80b 100644 --- a/configure.in +++ b/configure.in @@ -3179,12 +3179,13 @@ EXTSTATIC= AC_SUBST(EXTSTATIC)dnl AC_ARG_WITH(static-linked-ext, AS_HELP_STRING([--with-static-linked-ext], [link external modules statically]), - [AS_CASE([$withval],[yes],[STATIC=;EXTSTATIC=static])]) -if test x"$EXTSTATIC" = xstatic; then + [AS_CASE([$withval],[yes],[STATIC=;EXTSTATIC=static],[no],[],[EXTSTATIC="$withval"])]) +AS_CASE([",$EXTSTATIC,"], [,static,|*,enc,*], [ ENCOBJS='enc/encinit.$(OBJEXT) enc/libenc.$(LIBEXT) enc/libtrans.$(LIBEXT)' EXTOBJS='ext/extinit.$(OBJEXT)' AC_DEFINE_UNQUOTED(EXTSTATIC, 1) -fi + AC_SUBST(ENCSTATIC, static) +]) AC_SUBST(ENCOBJS) AC_SUBST(EXTOBJS) |