Skip to content

Commit

Permalink
working on linux version
Browse files Browse the repository at this point in the history
  • Loading branch information
mpapis committed May 3, 2012
1 parent 4640006 commit 46388a8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/defaults
@@ -1,4 +1,4 @@
version=1.9.3-p194 version=1.9.3-p194
package_extension=tar.bz2 package_extension=tar.bz2
base_url=http://ftp.ruby-lang.org/pub/ruby/1.9/ base_url=http://ftp.ruby-lang.org/pub/ruby/1.9/
configure_flags=--enable-load-relative --with-static-linked-ext --disable-shared configure_flags=--with-static-linked-ext --disable-shared
25 changes: 23 additions & 2 deletions shell/functions
Expand Up @@ -5,7 +5,7 @@ tokaido_install_package()
includes $1 includes $1
package is installed $1 && package is installed $1 &&
log step "$1 already installed" true || log step "$1 already installed" true ||
package install name $@ static LDFLAGS="-fPIC" package install name $@ static
package reset package reset
} }


Expand Down Expand Up @@ -46,6 +46,27 @@ tokaidoapp_preconfigure()
then then
LDFLAGS="-Bstatic $LDFLAGS" LDFLAGS="-Bstatic $LDFLAGS"
else else
LDFLAGS="-static $LDFLAGS" LDFLAGS="-static-libgcc -static-libstdc++ $LDFLAGS"
fi fi
} }

tokaidoapp_ext_configure()
{
if file contains in ext/Setup \
regex "$1"
then
file replace in ext/Setup \
regex "#$1" \
with "$1"
else
file write append to ext/Setup \
content "$1"
fi
}

tokaidoapp_postconfigure()
{
tokaidoapp_ext_configure openssl
tokaidoapp_ext_configure zlib
tokaidoapp_ext_configure psych
}

0 comments on commit 46388a8

Please sign in to comment.