[Groonga-commit] groonga/gcs [master] package: work on Mac OS X

Back to archive index

null+****@clear***** null+****@clear*****
2012年 6月 21日 (木) 17:03:30 JST


Kouhei Sutou	2012-06-21 17:03:30 +0900 (Thu, 21 Jun 2012)

  New Revision: aab7ffaeb0ef11d6ecd95dc80d01d9e62de467e6
  https://github.com/groonga/gcs/commit/aab7ffaeb0ef11d6ecd95dc80d01d9e62de467e6

  Log:
    package: work on Mac OS X

  Modified files:
    packages/all-in-one/Rakefile

  Modified: packages/all-in-one/Rakefile (+5 -2)
===================================================================
--- packages/all-in-one/Rakefile    2012-06-21 16:57:57 +0900 (28e6d63)
+++ packages/all-in-one/Rakefile    2012-06-21 17:03:30 +0900 (4962612)
@@ -1,5 +1,6 @@
 # -*- ruby -*-
 
+require "rbconfig"
 require "uri"
 require "pathname"
 require "open-uri"
@@ -7,6 +8,8 @@ require "open-uri"
 build_debug_p = ENV["BUILD_DEBUG"] == "yes"
 debug_flags = ["CFLAGS=-ggdb3 -O0", "CXXFLAGS=-ggdb3 -O0"]
 
+shared_object_extension = RbConfig::CONFIG["LIBRUBY_SO"].split(/\./).last
+
 base_dir = Pathname.new(__FILE__).dirname.expand_path
 top_dir = base_dir.parent.parent
 tmp_dir = base_dir + "tmp"
@@ -48,7 +51,7 @@ namespace(:build) do
   end
 end
 
-libmsgpack_so_path = @dist_dir + "lib/libmsgpack.so"
+libmsgpack_so_path = @dist_dir + "lib/libmsgpack.#{shared_object_extension}"
 namespace(:msgpack) do
   version = "0.5.7"
   source_basename = "msgpack-#{version}"
@@ -79,7 +82,7 @@ namespace(:msgpack) do
   end
 end
 
-libgroonga_so_path = @dist_dir + "lib/libgroonga.so"
+libgroonga_so_path = @dist_dir + "lib/libgroonga.#{shared_object_extension}"
 namespace(:groonga) do
   version = "2.0.3"
   source_basename = "groonga-#{version}"
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Descargar 



Groonga-commit メーリングリストの案内
Back to archive index