mongory 0.7.7-aarch64-linux → 0.7.8-aarch64-linux
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/mongory_ext/extconf.rb +19 -0
- data/lib/mongory/version.rb +1 -1
- data/lib/mongory.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5af71b82ebbb676a9120e7926eed72db459f4b3d1315ce0929a9bcaf645abea8
|
4
|
+
data.tar.gz: 1043c9d44da903c999ef580b429c6fced1a445d732497ec4aff565b23eed12eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9855d445cd980aedd0b0dc22d0797057d4d44675a577bb69d9422441ae0574f2218f965e31e214a13b2abdfc79b6050ec7554ded37859425de29d23c8f382623
|
7
|
+
data.tar.gz: 38d1dccf17ff9fe7bcaae7bad7fcf9a69a22983b8e258e562692b2228c04e5c74c25c39977330aba5c15baa76c902811d1277ea5f7eec380e150becc72786360
|
data/ext/mongory_ext/extconf.rb
CHANGED
@@ -55,6 +55,13 @@ $CFLAGS << ' -Wno-declaration-after-statement -Wno-discarded-qualifiers'
|
|
55
55
|
$CFLAGS << ' -O2' unless ENV['DEBUG']
|
56
56
|
$CFLAGS << ' -g -O0 -DDEBUG' if ENV['DEBUG']
|
57
57
|
|
58
|
+
# --- macOS (darwin) linking: avoid hard-linking libruby, let symbols resolve at load time
|
59
|
+
if RbConfig::CONFIG['host_os'] =~ /darwin/
|
60
|
+
# Use dynamic_lookup so Ruby symbols (rb_*) are resolved by the host interpreter at dlopen time
|
61
|
+
$LDFLAGS << ' -Wl,-undefined,dynamic_lookup'
|
62
|
+
$DLDFLAGS << ' -Wl,-undefined,dynamic_lookup'
|
63
|
+
end
|
64
|
+
|
58
65
|
# Let mkmf generate rules by listing all sources and corresponding objects
|
59
66
|
$INCFLAGS << ' -I.'
|
60
67
|
$INCFLAGS << " -I#{File.join(core_src_dir, 'foundations')}"
|
@@ -74,6 +81,18 @@ puts "Use 'make' to build the extension"
|
|
74
81
|
# Append Makefile rules: explicit compilation rules for submodule sources to avoid copying/linking files
|
75
82
|
mk = File.read('Makefile')
|
76
83
|
|
84
|
+
if RbConfig::CONFIG['host_os'] =~ /darwin/
|
85
|
+
# --- sanitize Makefile to ensure no hard link against Ruby framework/libruby ---
|
86
|
+
mk << <<~'MAKE'
|
87
|
+
# --- darwin: force unlink from libruby (final override) ---
|
88
|
+
LIBRUBYARG =
|
89
|
+
LIBRUBYARG_SHARED =
|
90
|
+
LIBRUBYARG_STATIC =
|
91
|
+
LIBRUBY =
|
92
|
+
LIBS =
|
93
|
+
MAKE
|
94
|
+
end
|
95
|
+
|
77
96
|
# rubocop:disable Layout/HeredocIndentation
|
78
97
|
rules = +"\n# --- custom rules for mongory-core submodule sources ---\n"
|
79
98
|
(foundations_src + matchers_src).each do |src|
|
data/lib/mongory/version.rb
CHANGED
data/lib/mongory.rb
CHANGED
@@ -120,6 +120,6 @@ begin
|
|
120
120
|
abi = RUBY_VERSION.split('.').first(2).join('.')
|
121
121
|
require "core/#{abi}/mongory_ext"
|
122
122
|
require_relative 'mongory/c_query_builder'
|
123
|
-
rescue LoadError
|
124
|
-
warn(
|
123
|
+
rescue LoadError => e
|
124
|
+
warn("Mongory C extension is disabled because mongory_ext is not loaded: #{e.message}")
|
125
125
|
end
|