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
Expand Up @@ -43,7 +43,7 @@
$cleanfiles << wrapper
end
$INCFLAGS << ' -I../..'
$INCFLAGS << ' -I../../icu-1060' if `sw_vers -productVersion`.to_f <= 10.7
$INCFLAGS << ' -I../../icu-1060'
create_makefile("iconv")
if conf
open("Makefile", "a") do |mf|
Expand Down
2 changes: 1 addition & 1 deletion ext/ripper/extconf.rb
Expand Up @@ -16,7 +16,7 @@ def main
$defs << '-DRIPPER_DEBUG' if $debug
$VPATH << '$(topdir)' << '$(top_srcdir)'
$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'
create_makefile 'ripper'
end
Expand Down
6 changes: 2 additions & 4 deletions rakelib/builder/options.rb
Expand Up @@ -180,10 +180,8 @@ def initialize(opt)
end
@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}"
if `sw_vers -productVersion`.to_f <= 10.7
@cflags << ' -I./icu-1060'
@cxxflags << ' -I./icu-1060'
end
@cflags << ' -I./icu-1060'
@cxxflags << ' -I./icu-1060'
if sdk
sdk_flags = "--sysroot=#{sdk}"
@cflags << " #{sdk_flags}"
Expand Down

0 comments on commit 6868a67

Please sign in to comment.