Permalink
Browse files

working on linux version

  • Loading branch information...
mpapis committed May 3, 2012
1 parent 4640006 commit 46388a8acdba5baa97cd06b8997414e3ba6a2823
Showing with 24 additions and 3 deletions.
  1. +1 −1 config/defaults
  2. +23 −2 shell/functions
View
@@ -1,4 +1,4 @@
version=1.9.3-p194
package_extension=tar.bz2
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
View
@@ -5,7 +5,7 @@ tokaido_install_package()
includes $1
package is installed $1 &&
log step "$1 already installed" true ||
- package install name $@ static
+ LDFLAGS="-fPIC" package install name $@ static
package reset
}
@@ -46,6 +46,27 @@ tokaidoapp_preconfigure()
then
LDFLAGS="-Bstatic $LDFLAGS"
else
- LDFLAGS="-static $LDFLAGS"
+ LDFLAGS="-static-libgcc -static-libstdc++ $LDFLAGS"
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.