[macruby-changes] [4021] MacRuby/trunk
source_changes at macosforge.org
source_changes at macosforge.org
Tue May 4 19:16:33 PDT 2010
Revision: 4021
http://trac.macosforge.org/projects/ruby/changeset/4021
Author: lsansonetti at apple.com
Date: 2010-05-04 19:16:32 -0700 (Tue, 04 May 2010)
Log Message:
-----------
now filtering exported symbols (rb_*, ruby_* + exceptions)
Modified Paths:
--------------
MacRuby/trunk/rakelib/builder/options.rb
Added Paths:
-----------
MacRuby/trunk/exported_symbols_list
Added: MacRuby/trunk/exported_symbols_list
===================================================================
--- MacRuby/trunk/exported_symbols_list (rev 0)
+++ MacRuby/trunk/exported_symbols_list 2010-05-05 02:16:32 UTC (rev 4021)
@@ -0,0 +1,6 @@
+_rb_*
+_ruby_*
+_macruby_main
+.objc_class_name_MacRuby
+_LLVMLinkInJIT
+___auto_zone
Modified: MacRuby/trunk/rakelib/builder/options.rb
===================================================================
--- MacRuby/trunk/rakelib/builder/options.rb 2010-05-05 02:07:48 UTC (rev 4020)
+++ MacRuby/trunk/rakelib/builder/options.rb 2010-05-05 02:16:32 UTC (rev 4021)
@@ -45,7 +45,6 @@
NO_WARN_BUILD = !b.option('allow_build_warnings', false)
ENABLE_STATIC_LIBRARY = b.option('enable_static_library', 'no') { 'yes' }
ENABLE_DEBUG_LOGGING = b.option('enable_debug_logging', true) { |x| x == 'true' }
-UNEXPORTED_SYMBOLS_LIST = b.option('unexported_symbols_list', nil)
SIMULTANEOUS_JOBS = b.option('jobs', 1) { |x| x.to_i }
COMPILE_STDLIB = b.option('compile_stdlib', true) { |x| x == 'true' }
@@ -100,6 +99,7 @@
INSTALL_NAME = File.join(FRAMEWORK_USR_LIB, 'lib' + RUBY_SO_NAME + '.dylib')
ARCHFLAGS = ARCHS.map { |a| '-arch ' + a }.join(' ')
LLVM_MODULES = "core jit nativecodegen bitwriter"
+EXPORTED_SYMBOLS_LIST = "./exported_symbols_list"
CC = '/usr/bin/gcc-4.2'
CXX = '/usr/bin/g++-4.2'
@@ -113,8 +113,7 @@
CXXFLAGS << " -DLLVM_PRE_TOT" if ENV['LLVM_PRE_TOT']
LDFLAGS = `#{LLVM_CONFIG} --ldflags --libs #{LLVM_MODULES}`.strip.gsub(/\n/, '')
LDFLAGS << " -lpthread -ldl -lxml2 -lobjc -lauto -licucore -framework Foundation"
-DLDFLAGS = "-dynamiclib -undefined suppress -flat_namespace -install_name #{INSTALL_NAME} -current_version #{MACRUBY_VERSION} -compatibility_version #{MACRUBY_VERSION}"
-DLDFLAGS << " -unexported_symbols_list #{UNEXPORTED_SYMBOLS_LIST}" if UNEXPORTED_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}"
CFLAGS << " -std=c99" # we add this one later to not conflict with C++ flags
OBJC_CFLAGS << " -std=c99"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100504/4ffee792/attachment.html>
More information about the macruby-changes
mailing list