Skip to content

Commit

Permalink
include the ICU header without checking OS version
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Mar 5, 2012
1 parent e32766b commit 6868a67
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ext/iconv/extconf.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
$cleanfiles << wrapper $cleanfiles << wrapper
end end
$INCFLAGS << ' -I../..' $INCFLAGS << ' -I../..'
$INCFLAGS << ' -I../../icu-1060' if `sw_vers -productVersion`.to_f <= 10.7 $INCFLAGS << ' -I../../icu-1060'
create_makefile("iconv") create_makefile("iconv")
if conf if conf
open("Makefile", "a") do |mf| open("Makefile", "a") do |mf|
Expand Down
2 changes: 1 addition & 1 deletion ext/ripper/extconf.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def main
$defs << '-DRIPPER_DEBUG' if $debug $defs << '-DRIPPER_DEBUG' if $debug
$VPATH << '$(topdir)' << '$(top_srcdir)' $VPATH << '$(topdir)' << '$(top_srcdir)'
$INCFLAGS << ' -I$(topdir) -I$(top_srcdir) -I$(top_srcdir)/onig' $INCFLAGS << ' -I$(topdir) -I$(top_srcdir) -I$(top_srcdir)/onig'
$INCFLAGS << ' -I../../icu-1060' if `sw_vers -productVersion`.to_f <= 10.7 $INCFLAGS << ' -I../../icu-1060'
$CFLAGS << ' -std=c99' $CFLAGS << ' -std=c99'
create_makefile 'ripper' create_makefile 'ripper'
end end
Expand Down
6 changes: 2 additions & 4 deletions rakelib/builder/options.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -180,10 +180,8 @@ def initialize(opt)
end end
@cxxflags << " -fno-rtti" unless @cxxflags.index("-fno-rtti") @cxxflags << " -fno-rtti" unless @cxxflags.index("-fno-rtti")
@dldflags = "-dynamiclib -undefined suppress -flat_namespace -install_name #{INSTALL_NAME} -current_version #{MACRUBY_VERSION} -compatibility_version #{MACRUBY_VERSION} -exported_symbols_list #{EXPORTED_SYMBOLS_LIST}" @dldflags = "-dynamiclib -undefined suppress -flat_namespace -install_name #{INSTALL_NAME} -current_version #{MACRUBY_VERSION} -compatibility_version #{MACRUBY_VERSION} -exported_symbols_list #{EXPORTED_SYMBOLS_LIST}"
if `sw_vers -productVersion`.to_f <= 10.7 @cflags << ' -I./icu-1060'
@cflags << ' -I./icu-1060' @cxxflags << ' -I./icu-1060'
@cxxflags << ' -I./icu-1060'
end
if sdk if sdk
sdk_flags = "--sysroot=#{sdk}" sdk_flags = "--sysroot=#{sdk}"
@cflags << " #{sdk_flags}" @cflags << " #{sdk_flags}"
Expand Down

0 comments on commit 6868a67

Please sign in to comment.