Fix 10.9 Ruby.framework detection/compilation

Mac OS X Mavericks ships with Ruby.framework 2.0 which requires some
fixes to enable proper header inclusion and version defines.
This commit is contained in:
Felix Bünemann
2013-10-09 23:14:34 +02:00
parent df7b6fb380
commit b91903e9bf
3 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -7228,7 +7228,7 @@ echo "${ECHO_T}$rubyhdrdir" >&6; }
RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
elif test -d "/System/Library/Frameworks/Ruby.framework"; then
RUBY_LIBS="-framework Ruby"
RUBY_CFLAGS=
RUBY_CFLAGS="-DRUBY_VERSION=$rubyversion"
librubyarg=
fi
+1 -1
View File
@@ -1734,7 +1734,7 @@ if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
dnl On Mac OS X it is safer to just use the -framework flag
RUBY_LIBS="-framework Ruby"
dnl Don't include the -I flag when -framework is set
RUBY_CFLAGS=
RUBY_CFLAGS="-DRUBY_VERSION=$rubyversion"
librubyarg=
fi
+5 -1
View File
@@ -102,7 +102,11 @@
# include <ruby.h>
#endif
#ifdef RUBY19_OR_LATER
# include <ruby/encoding.h>
# ifdef FEAT_GUI_MACVIM
# include <Ruby/ruby/encoding.h>
# else
# include <ruby/encoding.h>
# endif
#endif
#undef off_t /* ruby defines off_t as _int64, Mingw uses long */