Bug #1214
closedBuild issues
Description
=begin
I attempted to build "full" (not mini) ruby for Android and found the following patches were necessary.
- More backslashes to AL_SEPARATOR in Makefile.in for shell will "escape" backslashes
- Demotion of -l$(RUBY_SO_NAME)-static to lib$(RUBY_SO_NAME)-static.a for LIBRUBYARG_STATIC assignment in configure if ruby is to be built as a dynamic executable.
hiro
==== ruby-1.9.1-p0/Makefile.in ====
*** 160,166 ****
if RUBY_PLATFORM =~ /mswin|bccwin|mingw/;
class File;
remove_const :ALT_SEPARATOR;
! ALT_SEPARATOR = "\";
end;
end;
' > $@
--- 160,166 ----
if RUBY_PLATFORM =~ /mswin|bccwin|mingw/;
class File;
remove_const :ALT_SEPARATOR;
! ALT_SEPARATOR = "\\";
end;
end;
' > $@
==== /ruby-1.9.1-p0/configure ====
*** 22092,22098 ****
FIRSTMAKEFILE=""
LIBRUBY_A='lib$(RUBY_SO_NAME)-static.a'
LIBRUBY='$(LIBRUBY_A)'
! LIBRUBYARG_STATIC='-l$(RUBY_SO_NAME)-static'
LIBRUBYARG='$(LIBRUBYARG_STATIC)'
SOLIBS=
--- 22092,22099 ----
FIRSTMAKEFILE=""
LIBRUBY_A='lib$(RUBY_SO_NAME)-static.a'
LIBRUBY='$(LIBRUBY_A)'
! ##LIBRUBYARG_STATIC='-l$(RUBY_SO_NAME)-static'
! LIBRUBYARG_STATIC='lib$(RUBY_SO_NAME)-static.a'
LIBRUBYARG='$(LIBRUBYARG_STATIC)'
SOLIBS=
=end