amoskeag-rb 0.1.4 → 0.2.0
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/CHANGELOG.md +28 -0
- data/Cargo.toml +13 -0
- data/README.md +2 -1
- data/ext/amoskeag/Cargo.toml +2 -7
- data/ext/amoskeag/extconf.rb +20 -5
- data/lib/amoskeag-rb/version.rb +2 -2
- data/lib/amoskeag-rb.rb +10 -8
- metadata +5 -7
- data/ext/amoskeag/Makefile +0 -584
- data/ext/amoskeag/amoskeag_native.so +0 -0
- data/ext/amoskeag/mkmf.log +0 -16
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 27129f36e1965ade16b5c40ca739dca8931ad3775503d4f5d8e9cf7d72c3760b
|
|
4
|
+
data.tar.gz: d7cdaca114dbc822ea9bec103337618d834902555d092087e1971ee9ec816563
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8bebbc968408955e111142d1da13286fcc4c98f71dcfc46dee97c5414cd56a464fe5e69224c80617e4a941866dd33067d7845695807f9b4e392343516de8c331
|
|
7
|
+
data.tar.gz: 4404d05a4a7bb1e4e5457042e17493905e7ac036e0a655b722377144c5c6ba8731846094ac0392ade6fc006acce93b9fa510eb8a5207924b4956af583cd401ae
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,33 @@ All notable changes to the amoskeag-rb gem will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.2.0] - 2026-06-19
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- Precompiled, statically-linked native gems for every supported platform, so
|
|
12
|
+
`gem install amoskeag-rb` downloads a ready-to-run binary — no Rust toolchain,
|
|
13
|
+
no `cargo`, no compile step. Targets: `x86_64-linux`, `aarch64-linux`,
|
|
14
|
+
`x86_64-linux-musl`, `aarch64-linux-musl`, `x64-mingw-ucrt`, `arm64-darwin`,
|
|
15
|
+
and `x86_64-darwin`, each built against Ruby 3.1–3.4.
|
|
16
|
+
- `misc/native.yml` as the single source of truth for build platforms + ABIs.
|
|
17
|
+
- `rakelib/cross.rake` with `rake gem:<platform>` / `gem:cross` tasks (rb-sys-dock)
|
|
18
|
+
for local cross-builds.
|
|
19
|
+
- GitHub Actions workflow (`.github/workflows/gem.yml`) that tests, builds every
|
|
20
|
+
platform gem plus a source fallback, and publishes to RubyGems on tag via
|
|
21
|
+
Trusted Publishing (OIDC).
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
- Build switched from `Rake::ExtensionTask` to `RbSys::ExtensionTask`; the Rust
|
|
25
|
+
crate is now a Cargo workspace member (root `Cargo.toml`) so cross-compilation
|
|
26
|
+
and `cargo metadata` resolve cleanly.
|
|
27
|
+
- The native binary loads from a per-ABI path (`lib/amoskeag-rb/<ruby>/`), with a
|
|
28
|
+
fallback for source-gem installs.
|
|
29
|
+
- The source gem links libstdc++/libgcc statically on Linux for portability.
|
|
30
|
+
|
|
31
|
+
### Fixed
|
|
32
|
+
- The extension loader no longer relies on a development-only relative path that
|
|
33
|
+
failed for installed gems.
|
|
34
|
+
|
|
8
35
|
## [0.1.0] - 2025-01-20
|
|
9
36
|
|
|
10
37
|
### Added
|
|
@@ -35,4 +62,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
35
62
|
- Pure functional evaluation (no side effects)
|
|
36
63
|
- Security-first design (immune to code injection)
|
|
37
64
|
|
|
65
|
+
[0.2.0]: https://github.com/durable-oss/amoskeag-rb/releases/tag/v0.2.0
|
|
38
66
|
[0.1.0]: https://github.com/durable-oss/amoskeag-rb/releases/tag/v0.1.0
|
data/Cargo.toml
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Root workspace so `cargo metadata` (run by rb_sys's ExtensionTask from the
|
|
2
|
+
# gem root) can discover the native crate at ext/amoskeag. The actual crate —
|
|
3
|
+
# amoskeag_native, a cdylib — lives in ext/amoskeag/Cargo.toml.
|
|
4
|
+
[workspace]
|
|
5
|
+
members = ["ext/amoskeag"]
|
|
6
|
+
resolver = "2"
|
|
7
|
+
|
|
8
|
+
# Optimized build for the shipped extension. Profiles must be declared at the
|
|
9
|
+
# workspace root; Cargo ignores them in member crates.
|
|
10
|
+
[profile.release]
|
|
11
|
+
lto = true
|
|
12
|
+
opt-level = 3
|
|
13
|
+
codegen-units = 1
|
data/README.md
CHANGED
|
@@ -180,7 +180,8 @@ Amoskeag.evaluate(program, data)
|
|
|
180
180
|
|
|
181
181
|
```ruby
|
|
182
182
|
# Monthly payment for a $250,000 loan at 4.5% APR for 30 years
|
|
183
|
-
|
|
183
|
+
# pmt(rate, nper, pv, type_) - type_ is 0 for end-of-period payments
|
|
184
|
+
formula = "pmt(rate / 12, years * 12, -principal, 0) | round(2)"
|
|
184
185
|
program = Amoskeag.compile(formula, [])
|
|
185
186
|
|
|
186
187
|
data = {
|
data/ext/amoskeag/Cargo.toml
CHANGED
|
@@ -3,9 +3,6 @@ name = "amoskeag_native"
|
|
|
3
3
|
version = "0.1.0"
|
|
4
4
|
edition = "2021"
|
|
5
5
|
|
|
6
|
-
# Exclude from parent workspace
|
|
7
|
-
[workspace]
|
|
8
|
-
|
|
9
6
|
[lib]
|
|
10
7
|
name = "amoskeag_native"
|
|
11
8
|
crate-type = ["cdylib"]
|
|
@@ -16,7 +13,5 @@ amoskeag-stdlib-operators = { git = "https://github.com/durable-oss/amoskeag" }
|
|
|
16
13
|
serde_json = "1.0"
|
|
17
14
|
magnus = "0.7"
|
|
18
15
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
opt-level = 3
|
|
22
|
-
codegen-units = 1
|
|
16
|
+
# NOTE: the release profile (lto, opt-level, codegen-units) lives in the
|
|
17
|
+
# workspace-root Cargo.toml — Cargo ignores profile tables in member crates.
|
data/ext/amoskeag/extconf.rb
CHANGED
|
@@ -1,10 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
require 'mkmf'
|
|
2
4
|
require 'rb_sys/mkmf'
|
|
3
5
|
|
|
4
|
-
#
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
# This file only runs when building the *source* gem (on platforms without a
|
|
7
|
+
# precompiled binary). Precompiled platform gems ship the cdylib directly and
|
|
8
|
+
# never execute extconf, so cargo is not required to install them.
|
|
9
|
+
unless system('cargo --version > /dev/null 2>&1')
|
|
10
|
+
abort 'Cargo (the Rust build tool) was not found in PATH. ' \
|
|
11
|
+
'Install Rust from https://rustup.rs/ and re-run, or install a ' \
|
|
12
|
+
'precompiled gem for your platform.'
|
|
7
13
|
end
|
|
8
14
|
|
|
9
|
-
|
|
10
|
-
|
|
15
|
+
create_rust_makefile('amoskeag_native') do |r|
|
|
16
|
+
# Build the release profile defined in Cargo.toml (lto, opt-level 3).
|
|
17
|
+
r.profile = ENV.fetch('AMOSKEAG_PROFILE', 'release').to_sym
|
|
18
|
+
|
|
19
|
+
# Statically link the C/C++ runtime on Linux so the resulting binary doesn't
|
|
20
|
+
# depend on the host's exact libstdc++/libgcc — same portability goal as the
|
|
21
|
+
# rapidyaml gem. Darwin links these statically by default; skip there.
|
|
22
|
+
unless RbConfig::CONFIG['host_os'] =~ /darwin/
|
|
23
|
+
r.extra_rustflags = ['-C', 'link-args=-static-libgcc']
|
|
24
|
+
end
|
|
25
|
+
end
|
data/lib/amoskeag-rb/version.rb
CHANGED
data/lib/amoskeag-rb.rb
CHANGED
|
@@ -3,19 +3,21 @@
|
|
|
3
3
|
require 'json'
|
|
4
4
|
require_relative 'amoskeag-rb/version'
|
|
5
5
|
|
|
6
|
-
# Load the native extension
|
|
6
|
+
# Load the native extension.
|
|
7
|
+
#
|
|
8
|
+
# Precompiled platform gems install the binary under a per-ABI directory
|
|
9
|
+
# (lib/amoskeag-rb/<ruby_major.minor>/amoskeag_native.so) so a single gem can
|
|
10
|
+
# carry binaries for several Ruby versions. We try that first, then fall back to
|
|
11
|
+
# the flat layouts used by a freshly `rake compile`d source checkout.
|
|
7
12
|
begin
|
|
8
|
-
|
|
13
|
+
ruby_abi = RUBY_VERSION[/\d+\.\d+/]
|
|
14
|
+
require_relative "amoskeag-rb/#{ruby_abi}/amoskeag_native"
|
|
15
|
+
rescue LoadError
|
|
9
16
|
begin
|
|
10
|
-
require_relative '
|
|
17
|
+
require_relative 'amoskeag-rb/amoskeag_native'
|
|
11
18
|
rescue LoadError
|
|
12
|
-
# Fall back to standard require (for installed gem)
|
|
13
19
|
require 'amoskeag_native'
|
|
14
20
|
end
|
|
15
|
-
rescue LoadError => e
|
|
16
|
-
raise LoadError, "Failed to load amoskeag_native extension. " \
|
|
17
|
-
"Make sure the gem is properly installed and compiled. " \
|
|
18
|
-
"Original error: #{e.message}"
|
|
19
21
|
end
|
|
20
22
|
|
|
21
23
|
# Amoskeag - A secure, functional DSL for business rules
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: amoskeag-rb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Durable Programming
|
|
@@ -29,14 +29,14 @@ dependencies:
|
|
|
29
29
|
requirements:
|
|
30
30
|
- - "~>"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version:
|
|
32
|
+
version: 0.9.91
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
37
|
- - "~>"
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version:
|
|
39
|
+
version: 0.9.91
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: rake
|
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -111,13 +111,11 @@ extensions:
|
|
|
111
111
|
extra_rdoc_files: []
|
|
112
112
|
files:
|
|
113
113
|
- CHANGELOG.md
|
|
114
|
+
- Cargo.toml
|
|
114
115
|
- README.md
|
|
115
116
|
- ext/amoskeag/Cargo.lock
|
|
116
117
|
- ext/amoskeag/Cargo.toml
|
|
117
|
-
- ext/amoskeag/Makefile
|
|
118
|
-
- ext/amoskeag/amoskeag_native.so
|
|
119
118
|
- ext/amoskeag/extconf.rb
|
|
120
|
-
- ext/amoskeag/mkmf.log
|
|
121
119
|
- ext/amoskeag/src/lib.rs
|
|
122
120
|
- lib/amoskeag-rb.rb
|
|
123
121
|
- lib/amoskeag-rb/version.rb
|
|
@@ -149,7 +147,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
149
147
|
requirements:
|
|
150
148
|
- - ">="
|
|
151
149
|
- !ruby/object:Gem::Version
|
|
152
|
-
version:
|
|
150
|
+
version: 3.1.0
|
|
153
151
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
152
|
requirements:
|
|
155
153
|
- - ">="
|
data/ext/amoskeag/Makefile
DELETED
|
@@ -1,584 +0,0 @@
|
|
|
1
|
-
RB_SYS_BUILD_DIR ?= /mnt/storage/projects/durable_oss/amoskeag-rb/ext/amoskeag/.rb-sys
|
|
2
|
-
CARGO ?= cargo
|
|
3
|
-
CARGO_BUILD_TARGET ?=
|
|
4
|
-
SOEXT ?= so
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
# Determine the prefix Cargo uses for the lib.
|
|
8
|
-
ifneq ($(SOEXT),dll)
|
|
9
|
-
SOEXT_PREFIX ?= lib
|
|
10
|
-
endif
|
|
11
|
-
|
|
12
|
-
RB_SYS_CARGO_PROFILE ?= release
|
|
13
|
-
RB_SYS_CARGO_FEATURES ?=
|
|
14
|
-
RB_SYS_GLOBAL_RUSTFLAGS ?=
|
|
15
|
-
RB_SYS_EXTRA_RUSTFLAGS ?=
|
|
16
|
-
RB_SYS_EXTRA_CARGO_ARGS ?=
|
|
17
|
-
RB_SYS_CARGO_MANIFEST_DIR ?= .
|
|
18
|
-
|
|
19
|
-
# Set dirname for the profile, since the profiles do not directly map to target dir (i.e. dev -> debug)
|
|
20
|
-
ifeq ($(RB_SYS_CARGO_PROFILE),dev)
|
|
21
|
-
RB_SYS_CARGO_PROFILE_DIR ?= debug
|
|
22
|
-
else
|
|
23
|
-
RB_SYS_CARGO_PROFILE_DIR ?= $(RB_SYS_CARGO_PROFILE)
|
|
24
|
-
endif
|
|
25
|
-
|
|
26
|
-
# Set the build profile (dev, release, etc.).
|
|
27
|
-
RB_SYS_CARGO_PROFILE_FLAG = --profile $(RB_SYS_CARGO_PROFILE)
|
|
28
|
-
|
|
29
|
-
# Account for sub-directories when using `--target` argument with Cargo
|
|
30
|
-
RB_SYS_CARGO_TARGET_DIR ?= target
|
|
31
|
-
ifneq ($(CARGO_BUILD_TARGET),)
|
|
32
|
-
RB_SYS_FULL_TARGET_DIR = $(RB_SYS_CARGO_TARGET_DIR)/$(CARGO_BUILD_TARGET)
|
|
33
|
-
else
|
|
34
|
-
RB_SYS_FULL_TARGET_DIR = $(RB_SYS_CARGO_TARGET_DIR)
|
|
35
|
-
endif
|
|
36
|
-
|
|
37
|
-
target_prefix =
|
|
38
|
-
TARGET_NAME = amoskeag_native
|
|
39
|
-
TARGET_ENTRY = Init_$(TARGET_NAME)
|
|
40
|
-
RUBYARCHDIR = $(sitearchdir)$(target_prefix)
|
|
41
|
-
TARGET = amoskeag_native
|
|
42
|
-
DLLIB = $(TARGET).so
|
|
43
|
-
RUSTLIBDIR = $(RB_SYS_FULL_TARGET_DIR)/$(RB_SYS_CARGO_PROFILE_DIR)
|
|
44
|
-
RUSTLIB = $(RUSTLIBDIR)/$(SOEXT_PREFIX)$(TARGET_NAME).$(SOEXT)
|
|
45
|
-
TIMESTAMP_DIR = .
|
|
46
|
-
POSTLINK = :
|
|
47
|
-
|
|
48
|
-
CLEANOBJS = $(RUSTLIBDIR) $(RB_SYS_BUILD_DIR)
|
|
49
|
-
CLEANLIBS = $(DLLIB) $(RUSTLIB)
|
|
50
|
-
RUBYGEMS_CLEAN_DIRS = $(CLEANOBJS) $(CLEANFILES) ./cargo-vendor
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
SHELL = /bin/sh
|
|
54
|
-
|
|
55
|
-
# V=0 quiet, V=1 verbose. other values don't work.
|
|
56
|
-
V = 0
|
|
57
|
-
V0 = $(V:0=)
|
|
58
|
-
Q1 = $(V:1=)
|
|
59
|
-
Q = $(Q1:0=@)
|
|
60
|
-
ECHO1 = $(V:1=@ :)
|
|
61
|
-
ECHO = $(ECHO1:0=@ echo)
|
|
62
|
-
NULLCMD = :
|
|
63
|
-
|
|
64
|
-
#### Start of system configuration section. ####
|
|
65
|
-
|
|
66
|
-
srcdir = .
|
|
67
|
-
topdir = /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/include/ruby-3.4.0
|
|
68
|
-
hdrdir = $(topdir)
|
|
69
|
-
arch_hdrdir = /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/include/ruby-3.4.0/x86_64-linux
|
|
70
|
-
PATH_SEPARATOR = :
|
|
71
|
-
VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
|
|
72
|
-
|
|
73
|
-
prefix = $(DESTDIR)/nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7
|
|
74
|
-
|
|
75
|
-
rubysitearchprefix = $(rubylibprefix)/$(sitearch)
|
|
76
|
-
|
|
77
|
-
rubyarchprefix = $(rubylibprefix)/$(arch)
|
|
78
|
-
|
|
79
|
-
rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
|
|
80
|
-
|
|
81
|
-
exec_prefix = $(prefix)
|
|
82
|
-
|
|
83
|
-
vendorarchhdrdir = $(vendorhdrdir)/$(sitearch)
|
|
84
|
-
|
|
85
|
-
sitearchhdrdir = $(sitehdrdir)/$(sitearch)
|
|
86
|
-
|
|
87
|
-
rubyarchhdrdir = $(rubyhdrdir)/$(arch)
|
|
88
|
-
|
|
89
|
-
vendorhdrdir = $(rubyhdrdir)/vendor_ruby
|
|
90
|
-
|
|
91
|
-
sitehdrdir = $(rubyhdrdir)/site_ruby
|
|
92
|
-
|
|
93
|
-
rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
|
|
94
|
-
|
|
95
|
-
vendorarchdir = $(vendorlibdir)/$(sitearch)
|
|
96
|
-
|
|
97
|
-
vendorlibdir = $(vendordir)/$(ruby_version)
|
|
98
|
-
|
|
99
|
-
vendordir = $(rubylibprefix)/vendor_ruby
|
|
100
|
-
|
|
101
|
-
sitearchdir = $(sitelibdir)/$(sitearch)
|
|
102
|
-
|
|
103
|
-
sitelibdir = $(sitedir)/$(ruby_version)
|
|
104
|
-
|
|
105
|
-
sitedir = $(rubylibprefix)/site_ruby
|
|
106
|
-
|
|
107
|
-
rubyarchdir = $(rubylibdir)/$(arch)
|
|
108
|
-
|
|
109
|
-
rubylibdir = $(rubylibprefix)/$(ruby_version)
|
|
110
|
-
|
|
111
|
-
sitearchincludedir = $(includedir)/$(sitearch)
|
|
112
|
-
|
|
113
|
-
archincludedir = $(includedir)/$(arch)
|
|
114
|
-
|
|
115
|
-
sitearchlibdir = $(libdir)/$(sitearch)
|
|
116
|
-
|
|
117
|
-
archlibdir = $(libdir)/$(arch)
|
|
118
|
-
|
|
119
|
-
ridir = $(datarootdir)/$(RI_BASE_NAME)
|
|
120
|
-
|
|
121
|
-
modular_gc_dir = $(DESTDIR)
|
|
122
|
-
|
|
123
|
-
mandir = $(datarootdir)/man
|
|
124
|
-
|
|
125
|
-
localedir = $(datarootdir)/locale
|
|
126
|
-
|
|
127
|
-
libdir = $(exec_prefix)/lib
|
|
128
|
-
|
|
129
|
-
psdir = $(docdir)
|
|
130
|
-
|
|
131
|
-
pdfdir = $(docdir)
|
|
132
|
-
|
|
133
|
-
dvidir = $(docdir)
|
|
134
|
-
|
|
135
|
-
htmldir = $(docdir)
|
|
136
|
-
|
|
137
|
-
infodir = $(datarootdir)/info
|
|
138
|
-
|
|
139
|
-
docdir = $(datarootdir)/doc/$(PACKAGE)
|
|
140
|
-
|
|
141
|
-
oldincludedir = $(DESTDIR)/usr/include
|
|
142
|
-
|
|
143
|
-
includedir = $(prefix)/include
|
|
144
|
-
|
|
145
|
-
runstatedir = $(localstatedir)/run
|
|
146
|
-
|
|
147
|
-
localstatedir = $(prefix)/var
|
|
148
|
-
|
|
149
|
-
sharedstatedir = $(prefix)/com
|
|
150
|
-
|
|
151
|
-
sysconfdir = $(prefix)/etc
|
|
152
|
-
|
|
153
|
-
datadir = $(datarootdir)
|
|
154
|
-
|
|
155
|
-
datarootdir = $(prefix)/share
|
|
156
|
-
|
|
157
|
-
libexecdir = $(exec_prefix)/libexec
|
|
158
|
-
|
|
159
|
-
sbindir = $(exec_prefix)/sbin
|
|
160
|
-
|
|
161
|
-
bindir = $(exec_prefix)/bin
|
|
162
|
-
|
|
163
|
-
archdir = $(rubyarchdir)
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
CC_WRAPPER =
|
|
168
|
-
CC = gcc
|
|
169
|
-
CXX = g++
|
|
170
|
-
LIBRUBY = $(LIBRUBY_SO)
|
|
171
|
-
LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
|
|
172
|
-
LIBRUBYARG_SHARED = -Wl,-rpath,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)
|
|
173
|
-
LIBRUBYARG_STATIC = -Wl,-rpath,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)-static $(MAINLIBS)
|
|
174
|
-
empty =
|
|
175
|
-
OUTFLAG = -o $(empty)
|
|
176
|
-
COUTFLAG = -o $(empty)
|
|
177
|
-
CSRCFLAG = $(empty)
|
|
178
|
-
|
|
179
|
-
RUBY_EXTCONF_H =
|
|
180
|
-
cflags = $(hardenflags) $(optflags) $(debugflags) $(warnflags)
|
|
181
|
-
cxxflags =
|
|
182
|
-
optflags = -O3 -fno-fast-math
|
|
183
|
-
debugflags = -ggdb3
|
|
184
|
-
warnflags = -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wmisleading-indentation -Wundef
|
|
185
|
-
cppflags =
|
|
186
|
-
CCDLFLAGS = -fPIC
|
|
187
|
-
CFLAGS = $(CCDLFLAGS) $(cflags) -fPIC $(ARCH_FLAG)
|
|
188
|
-
INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
|
|
189
|
-
DEFS =
|
|
190
|
-
CPPFLAGS = $(DEFS) $(cppflags)
|
|
191
|
-
CXXFLAGS = $(CCDLFLAGS) $(ARCH_FLAG)
|
|
192
|
-
ldflags = -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed
|
|
193
|
-
dldflags = -Wl,--compress-debug-sections=zlib
|
|
194
|
-
ARCH_FLAG =
|
|
195
|
-
DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
|
|
196
|
-
LDSHARED = $(CC) -shared
|
|
197
|
-
LDSHAREDXX = $(CXX) -shared
|
|
198
|
-
POSTLINK = :
|
|
199
|
-
AR = ar
|
|
200
|
-
LD = ld
|
|
201
|
-
EXEEXT =
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
RUBY_INSTALL_NAME = $(RUBY_BASE_NAME)
|
|
205
|
-
|
|
206
|
-
RUBY_SO_NAME = ruby
|
|
207
|
-
|
|
208
|
-
RUBYW_INSTALL_NAME =
|
|
209
|
-
|
|
210
|
-
RUBY_VERSION_NAME = $(RUBY_BASE_NAME)-$(ruby_version)
|
|
211
|
-
|
|
212
|
-
RUBYW_BASE_NAME = rubyw
|
|
213
|
-
|
|
214
|
-
RUBY_BASE_NAME = ruby
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
arch = x86_64-linux
|
|
218
|
-
sitearch = $(arch)
|
|
219
|
-
ruby_version = 3.4.0
|
|
220
|
-
ruby = $(bindir)/$(RUBY_BASE_NAME)
|
|
221
|
-
RUBY = $(ruby)
|
|
222
|
-
BUILTRUBY = $(bindir)/$(RUBY_BASE_NAME)
|
|
223
|
-
ruby_headers = $(hdrdir)/ruby.h $(hdrdir)/ruby/backward.h $(hdrdir)/ruby/ruby.h $(hdrdir)/ruby/defines.h $(hdrdir)/ruby/missing.h $(hdrdir)/ruby/intern.h $(hdrdir)/ruby/st.h $(hdrdir)/ruby/subst.h $(arch_hdrdir)/ruby/config.h
|
|
224
|
-
|
|
225
|
-
RM = rm -f
|
|
226
|
-
RM_RF = rm -fr
|
|
227
|
-
RMDIRS = rmdir --ignore-fail-on-non-empty -p
|
|
228
|
-
MAKEDIRS = @$(RUBY) -run -e mkdir -- -p
|
|
229
|
-
INSTALL = @$(RUBY) -run -e install -- -vp
|
|
230
|
-
INSTALL_PROG = $(INSTALL) -m 0755
|
|
231
|
-
INSTALL_DATA = $(INSTALL) -m 644
|
|
232
|
-
COPY = cp
|
|
233
|
-
TOUCH = exit >
|
|
234
|
-
|
|
235
|
-
#### End of system configuration section. ####
|
|
236
|
-
|
|
237
|
-
preload =
|
|
238
|
-
|
|
239
|
-
CLEANFILES = mkmf.log
|
|
240
|
-
DISTCLEANFILES =
|
|
241
|
-
|
|
242
|
-
all static install-rb: Makefile
|
|
243
|
-
@$(NULLCMD)
|
|
244
|
-
.PHONY: all static install-rb
|
|
245
|
-
.PHONY: clean clean-so clean-static clean-rb
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
clean-static::
|
|
250
|
-
clean-rb-default::
|
|
251
|
-
clean-rb::
|
|
252
|
-
clean-so::
|
|
253
|
-
clean: clean-so clean-static clean-rb-default clean-rb
|
|
254
|
-
-$(Q)$(RM_RF) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES) .*.time
|
|
255
|
-
|
|
256
|
-
distclean-rb-default::
|
|
257
|
-
distclean-rb::
|
|
258
|
-
distclean-so::
|
|
259
|
-
distclean-static::
|
|
260
|
-
distclean: clean distclean-so distclean-static distclean-rb-default distclean-rb
|
|
261
|
-
-$(Q)$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
|
|
262
|
-
-$(Q)$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
|
|
263
|
-
-$(Q)$(RMDIRS) $(DISTCLEANDIRS) 2> /dev/null || true
|
|
264
|
-
|
|
265
|
-
realclean: distclean
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
.PHONY: gemclean
|
|
269
|
-
|
|
270
|
-
ifneq ($(RB_SYS_VERBOSE),)
|
|
271
|
-
Q = $(0=@)
|
|
272
|
-
endif
|
|
273
|
-
|
|
274
|
-
CC = gcc
|
|
275
|
-
CXX = g++
|
|
276
|
-
AR = ar
|
|
277
|
-
export RBCONFIG_DESTDIR :=
|
|
278
|
-
export RBCONFIG_MAJOR := 3
|
|
279
|
-
export RBCONFIG_MINOR := 4
|
|
280
|
-
export RBCONFIG_TEENY := 7
|
|
281
|
-
export RBCONFIG_PATCHLEVEL := 58
|
|
282
|
-
export RBCONFIG_EXEEXT :=
|
|
283
|
-
export RBCONFIG_prefix := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7
|
|
284
|
-
export RBCONFIG_ruby_install_name := ruby
|
|
285
|
-
export RBCONFIG_RUBY_INSTALL_NAME := ruby
|
|
286
|
-
export RBCONFIG_RUBY_SO_NAME := ruby
|
|
287
|
-
export RBCONFIG_exec := exec
|
|
288
|
-
export RBCONFIG_ruby_pc := ruby-3.4.pc
|
|
289
|
-
export RBCONFIG_CC_WRAPPER :=
|
|
290
|
-
export RBCONFIG_PACKAGE := ruby
|
|
291
|
-
export RBCONFIG_BUILTIN_TRANSSRCS := enc/trans/newline.c
|
|
292
|
-
export RBCONFIG_MKMF_VERBOSE := 0
|
|
293
|
-
export RBCONFIG_MANTYPE := man
|
|
294
|
-
export RBCONFIG_vendorarchhdrdir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/include/ruby-3.4.0/vendor_ruby/x86_64-linux
|
|
295
|
-
export RBCONFIG_sitearchhdrdir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/include/ruby-3.4.0/site_ruby/x86_64-linux
|
|
296
|
-
export RBCONFIG_rubyarchhdrdir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/include/ruby-3.4.0/x86_64-linux
|
|
297
|
-
export RBCONFIG_vendorhdrdir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/include/ruby-3.4.0/vendor_ruby
|
|
298
|
-
export RBCONFIG_sitehdrdir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/include/ruby-3.4.0/site_ruby
|
|
299
|
-
export RBCONFIG_rubyhdrdir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/include/ruby-3.4.0
|
|
300
|
-
export RBCONFIG_RUBY_SEARCH_PATH :=
|
|
301
|
-
export RBCONFIG_UNIVERSAL_INTS :=
|
|
302
|
-
export RBCONFIG_UNIVERSAL_ARCHNAMES :=
|
|
303
|
-
export RBCONFIG_configure_args := '--prefix=/nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7' '--enable-shared' '--enable-pthread' '--disable-install-doc' 'AR=ar' 'AS=as' 'CC=gcc' 'CXX=g++' 'LD=ld' 'NM=nm' 'OBJCOPY=objcopy' 'OBJDUMP=objdump' 'RANLIB=ranlib' 'STRIP=strip'
|
|
304
|
-
export RBCONFIG_CONFIGURE := configure
|
|
305
|
-
export RBCONFIG_vendorarchdir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/lib/ruby/vendor_ruby/3.4.0/x86_64-linux
|
|
306
|
-
export RBCONFIG_vendorlibdir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/lib/ruby/vendor_ruby/3.4.0
|
|
307
|
-
export RBCONFIG_vendordir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/lib/ruby/vendor_ruby
|
|
308
|
-
export RBCONFIG_sitearchdir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/lib/ruby/site_ruby/3.4.0/x86_64-linux
|
|
309
|
-
export RBCONFIG_sitelibdir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/lib/ruby/site_ruby/3.4.0
|
|
310
|
-
export RBCONFIG_sitedir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/lib/ruby/site_ruby
|
|
311
|
-
export RBCONFIG_rubyarchdir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/lib/ruby/3.4.0/x86_64-linux
|
|
312
|
-
export RBCONFIG_rubylibdir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/lib/ruby/3.4.0
|
|
313
|
-
export RBCONFIG_ruby_version := 3.4.0
|
|
314
|
-
export RBCONFIG_sitearch := x86_64-linux
|
|
315
|
-
export RBCONFIG_arch := x86_64-linux
|
|
316
|
-
export RBCONFIG_sitearchincludedir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/include/x86_64-linux
|
|
317
|
-
export RBCONFIG_archincludedir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/include/x86_64-linux
|
|
318
|
-
export RBCONFIG_sitearchlibdir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/lib/x86_64-linux
|
|
319
|
-
export RBCONFIG_archlibdir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/lib/x86_64-linux
|
|
320
|
-
export RBCONFIG_libdirname := libdir
|
|
321
|
-
export RBCONFIG_RUBY_EXEC_PREFIX := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7
|
|
322
|
-
export RBCONFIG_RUBY_LIB_VERSION :=
|
|
323
|
-
export RBCONFIG_RUBY_LIB_VERSION_STYLE := 3 /* full */
|
|
324
|
-
export RBCONFIG_RI_BASE_NAME := ri
|
|
325
|
-
export RBCONFIG_ridir := /nix/store/ifp8w9mchn13lkfaldisfkglfx71q77g-ruby-3.3.9-devdoc/share/ri
|
|
326
|
-
export RBCONFIG_rubysitearchprefix := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/lib/ruby/x86_64-linux
|
|
327
|
-
export RBCONFIG_rubyarchprefix := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/lib/ruby/x86_64-linux
|
|
328
|
-
export RBCONFIG_MAKEFILES := Makefile GNUmakefile
|
|
329
|
-
export RBCONFIG_USE_LLVM_WINDRES :=
|
|
330
|
-
export RBCONFIG_PLATFORM_DIR :=
|
|
331
|
-
export RBCONFIG_COROUTINE_TYPE := amd64
|
|
332
|
-
export RBCONFIG_THREAD_MODEL := pthread
|
|
333
|
-
export RBCONFIG_SYMBOL_PREFIX :=
|
|
334
|
-
export RBCONFIG_EXPORT_PREFIX :=
|
|
335
|
-
export RBCONFIG_COMMON_HEADERS :=
|
|
336
|
-
export RBCONFIG_COMMON_MACROS :=
|
|
337
|
-
export RBCONFIG_COMMON_LIBS :=
|
|
338
|
-
export RBCONFIG_MAINLIBS := -lz -lrt -lrt -ldl -lm -lpthread
|
|
339
|
-
export RBCONFIG_ENABLE_SHARED := yes
|
|
340
|
-
export RBCONFIG_DLDSHARED := gcc -shared
|
|
341
|
-
export RBCONFIG_DLDLIBS := -lc
|
|
342
|
-
export RBCONFIG_SOLIBS := -lz -lrt -lrt -ldl -lm -lpthread
|
|
343
|
-
export RBCONFIG_LIBRUBYARG_SHARED := -Wl,-rpath,/nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/lib -L/nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/lib -lruby
|
|
344
|
-
export RBCONFIG_LIBRUBYARG_STATIC := -Wl,-rpath,/nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/lib -L/nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/lib -lruby-static -lz -lrt -lrt -ldl -lm -lpthread
|
|
345
|
-
export RBCONFIG_LIBRUBYARG := -Wl,-rpath,/nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/lib -L/nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/lib -lruby
|
|
346
|
-
export RBCONFIG_LIBRUBY := libruby.so.3.4.7
|
|
347
|
-
export RBCONFIG_LIBRUBY_ALIASES := libruby.so.3.4 libruby.so
|
|
348
|
-
export RBCONFIG_LIBRUBY_SONAME := libruby.so.3.4
|
|
349
|
-
export RBCONFIG_LIBRUBY_SO := libruby.so.3.4.7
|
|
350
|
-
export RBCONFIG_LIBRUBY_A := libruby-static.a
|
|
351
|
-
export RBCONFIG_RUBYW_INSTALL_NAME :=
|
|
352
|
-
export RBCONFIG_rubyw_install_name :=
|
|
353
|
-
export RBCONFIG_EXTDLDFLAGS :=
|
|
354
|
-
export RBCONFIG_EXTLDFLAGS :=
|
|
355
|
-
export RBCONFIG_hardenflags := -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
|
|
356
|
-
export RBCONFIG_strict_warnflags :=
|
|
357
|
-
export RBCONFIG_warnflags := -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wmisleading-indentation -Wundef
|
|
358
|
-
export RBCONFIG_debugflags := -ggdb3
|
|
359
|
-
export RBCONFIG_optflags := -O3 -fno-fast-math
|
|
360
|
-
export RBCONFIG_NULLCMD := :
|
|
361
|
-
export RBCONFIG_ENABLE_DEBUG_ENV :=
|
|
362
|
-
export RBCONFIG_DLNOBJ := dln.o
|
|
363
|
-
export RBCONFIG_RJIT_SUPPORT := yes
|
|
364
|
-
export RBCONFIG_YJIT_OBJ := yjit.o
|
|
365
|
-
export RBCONFIG_YJIT_LIBS := yjit/target/release/libyjit.a
|
|
366
|
-
export RBCONFIG_CARGO_BUILD_ARGS :=
|
|
367
|
-
export RBCONFIG_YJIT_SUPPORT := yes
|
|
368
|
-
export RBCONFIG_CARGO :=
|
|
369
|
-
export RBCONFIG_RUSTC := rustc
|
|
370
|
-
export RBCONFIG_INSTALL_STATIC_LIBRARY := no
|
|
371
|
-
export RBCONFIG_modular_gc_dir :=
|
|
372
|
-
export RBCONFIG_EXECUTABLE_EXTS :=
|
|
373
|
-
export RBCONFIG_ARCHFILE :=
|
|
374
|
-
export RBCONFIG_LIBRUBY_RELATIVE := no
|
|
375
|
-
export RBCONFIG_EXTOUT := .ext
|
|
376
|
-
export RBCONFIG_PREP := miniruby
|
|
377
|
-
export RBCONFIG_CROSS_COMPILING := no
|
|
378
|
-
export RBCONFIG_TEST_RUNNABLE := yes
|
|
379
|
-
export RBCONFIG_rubylibprefix := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/lib/ruby
|
|
380
|
-
export RBCONFIG_setup := Setup
|
|
381
|
-
export RBCONFIG_SOEXT := so
|
|
382
|
-
export RBCONFIG_TRY_LINK :=
|
|
383
|
-
export RBCONFIG_PRELOADENV := LD_PRELOAD
|
|
384
|
-
export RBCONFIG_LIBPATHENV := LD_LIBRARY_PATH
|
|
385
|
-
export RBCONFIG_RPATHFLAG := -Wl,-rpath,%1$-s
|
|
386
|
-
export RBCONFIG_LIBPATHFLAG := -L%1$-s
|
|
387
|
-
export RBCONFIG_LINK_SO := \n:
|
|
388
|
-
export RBCONFIG_ADDITIONAL_DLDFLAGS :=
|
|
389
|
-
export RBCONFIG_ENCSTATIC :=
|
|
390
|
-
export RBCONFIG_EXTSTATIC :=
|
|
391
|
-
export RBCONFIG_ASMEXT := S
|
|
392
|
-
export RBCONFIG_LIBEXT := a
|
|
393
|
-
export RBCONFIG_DLEXT := so
|
|
394
|
-
export RBCONFIG_LDSHAREDXX := g++ -shared
|
|
395
|
-
export RBCONFIG_LDSHARED := gcc -shared
|
|
396
|
-
export RBCONFIG_CCDLFLAGS := -fPIC
|
|
397
|
-
export RBCONFIG_STATIC :=
|
|
398
|
-
export RBCONFIG_ARCH_FLAG :=
|
|
399
|
-
export RBCONFIG_DLDFLAGS := -Wl,--compress-debug-sections=zlib
|
|
400
|
-
export RBCONFIG_ALLOCA :=
|
|
401
|
-
export RBCONFIG_dsymutil :=
|
|
402
|
-
export RBCONFIG_codesign :=
|
|
403
|
-
export RBCONFIG_cleanlibs :=
|
|
404
|
-
export RBCONFIG_POSTLINK := :
|
|
405
|
-
export RBCONFIG_incflags :=
|
|
406
|
-
export RBCONFIG_WERRORFLAG := -Werror
|
|
407
|
-
export RBCONFIG_RUBY_DEVEL :=
|
|
408
|
-
export RBCONFIG_CHDIR := cd -P
|
|
409
|
-
export RBCONFIG_RMALL := rm -fr
|
|
410
|
-
export RBCONFIG_RMDIRS := rmdir --ignore-fail-on-non-empty -p
|
|
411
|
-
export RBCONFIG_RMDIR := rmdir --ignore-fail-on-non-empty
|
|
412
|
-
export RBCONFIG_CP := cp
|
|
413
|
-
export RBCONFIG_RM := rm -f
|
|
414
|
-
export RBCONFIG_PKG_CONFIG :=
|
|
415
|
-
export RBCONFIG_DOXYGEN :=
|
|
416
|
-
export RBCONFIG_DOT :=
|
|
417
|
-
export RBCONFIG_INSTALL_DATA := $(INSTALL) -m 644
|
|
418
|
-
export RBCONFIG_INSTALL_SCRIPT := $(INSTALL)
|
|
419
|
-
export RBCONFIG_INSTALL_PROGRAM := $(INSTALL)
|
|
420
|
-
export RBCONFIG_SET_MAKE :=
|
|
421
|
-
export RBCONFIG_LN_S := ln -s
|
|
422
|
-
export RBCONFIG_DLLWRAP :=
|
|
423
|
-
export RBCONFIG_WINDRES :=
|
|
424
|
-
export RBCONFIG_ARFLAGS := rcD
|
|
425
|
-
export RBCONFIG_try_header :=
|
|
426
|
-
export RBCONFIG_CC_VERSION := gcc --version
|
|
427
|
-
export RBCONFIG_CSRCFLAG :=
|
|
428
|
-
export RBCONFIG_COUTFLAG := -o
|
|
429
|
-
export RBCONFIG_OUTFLAG := -o
|
|
430
|
-
export RBCONFIG_CPPOUTFILE := -o conftest.i
|
|
431
|
-
export RBCONFIG_GNU_LD := yes
|
|
432
|
-
export RBCONFIG_GCC := yes
|
|
433
|
-
export RBCONFIG_CPP := gcc -E
|
|
434
|
-
export RBCONFIG_CXXFLAGS :=
|
|
435
|
-
export RBCONFIG_OBJEXT := o
|
|
436
|
-
export RBCONFIG_CPPFLAGS :=
|
|
437
|
-
export RBCONFIG_LDFLAGS := -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed
|
|
438
|
-
export RBCONFIG_CFLAGS := -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wmisleading-indentation -Wundef -fPIC
|
|
439
|
-
export RBCONFIG_STRIP := strip -S -x
|
|
440
|
-
export RBCONFIG_RANLIB := ranlib
|
|
441
|
-
export RBCONFIG_OBJDUMP := objdump
|
|
442
|
-
export RBCONFIG_OBJCOPY := objcopy
|
|
443
|
-
export RBCONFIG_NM := nm
|
|
444
|
-
export RBCONFIG_LD := ld
|
|
445
|
-
export RBCONFIG_CXX := g++
|
|
446
|
-
export RBCONFIG_AS := as
|
|
447
|
-
export RBCONFIG_AR := ar
|
|
448
|
-
export RBCONFIG_CC := gcc
|
|
449
|
-
export RBCONFIG_wasmoptflags :=
|
|
450
|
-
export RBCONFIG_WASMOPT :=
|
|
451
|
-
export RBCONFIG_config_target := x86_64-pc-linux-gnu
|
|
452
|
-
export RBCONFIG_target_os := linux
|
|
453
|
-
export RBCONFIG_target_vendor := pc
|
|
454
|
-
export RBCONFIG_target_cpu := x86_64
|
|
455
|
-
export RBCONFIG_target := x86_64-pc-linux
|
|
456
|
-
export RBCONFIG_host_os := linux
|
|
457
|
-
export RBCONFIG_host_vendor := pc
|
|
458
|
-
export RBCONFIG_host_cpu := x86_64
|
|
459
|
-
export RBCONFIG_host := x86_64-pc-linux
|
|
460
|
-
export RBCONFIG_build_os := linux-gnu
|
|
461
|
-
export RBCONFIG_build_vendor := pc
|
|
462
|
-
export RBCONFIG_build_cpu := x86_64
|
|
463
|
-
export RBCONFIG_build := x86_64-pc-linux-gnu
|
|
464
|
-
export RBCONFIG_RUBY_VERSION_NAME := ruby-3.4.0
|
|
465
|
-
export RBCONFIG_RUBYW_BASE_NAME := rubyw
|
|
466
|
-
export RBCONFIG_RUBY_BASE_NAME := ruby
|
|
467
|
-
export RBCONFIG_RUBY_PROGRAM_VERSION := 3.4.7
|
|
468
|
-
export RBCONFIG_RUBY_API_VERSION := 3.4
|
|
469
|
-
export RBCONFIG_HAVE_GIT := no
|
|
470
|
-
export RBCONFIG_GIT := git
|
|
471
|
-
export RBCONFIG_cxxflags :=
|
|
472
|
-
export RBCONFIG_cppflags :=
|
|
473
|
-
export RBCONFIG_cflags := -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wmisleading-indentation -Wundef
|
|
474
|
-
export RBCONFIG_target_alias :=
|
|
475
|
-
export RBCONFIG_host_alias :=
|
|
476
|
-
export RBCONFIG_build_alias :=
|
|
477
|
-
export RBCONFIG_LIBS := -lm -lpthread
|
|
478
|
-
export RBCONFIG_ECHO_T :=
|
|
479
|
-
export RBCONFIG_ECHO_N := -n
|
|
480
|
-
export RBCONFIG_ECHO_C :=
|
|
481
|
-
export RBCONFIG_DEFS :=
|
|
482
|
-
export RBCONFIG_mandir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/share/man
|
|
483
|
-
export RBCONFIG_localedir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/share/locale
|
|
484
|
-
export RBCONFIG_libdir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/lib
|
|
485
|
-
export RBCONFIG_psdir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/share/doc/ruby
|
|
486
|
-
export RBCONFIG_pdfdir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/share/doc/ruby
|
|
487
|
-
export RBCONFIG_dvidir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/share/doc/ruby
|
|
488
|
-
export RBCONFIG_htmldir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/share/doc/ruby
|
|
489
|
-
export RBCONFIG_infodir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/share/info
|
|
490
|
-
export RBCONFIG_docdir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/share/doc/ruby
|
|
491
|
-
export RBCONFIG_oldincludedir := /usr/include
|
|
492
|
-
export RBCONFIG_includedir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/include
|
|
493
|
-
export RBCONFIG_runstatedir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/var/run
|
|
494
|
-
export RBCONFIG_localstatedir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/var
|
|
495
|
-
export RBCONFIG_sharedstatedir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/com
|
|
496
|
-
export RBCONFIG_sysconfdir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/etc
|
|
497
|
-
export RBCONFIG_datadir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/share
|
|
498
|
-
export RBCONFIG_datarootdir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/share
|
|
499
|
-
export RBCONFIG_libexecdir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/libexec
|
|
500
|
-
export RBCONFIG_sbindir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/sbin
|
|
501
|
-
export RBCONFIG_bindir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/bin
|
|
502
|
-
export RBCONFIG_exec_prefix := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7
|
|
503
|
-
export RBCONFIG_PACKAGE_URL :=
|
|
504
|
-
export RBCONFIG_PACKAGE_BUGREPORT :=
|
|
505
|
-
export RBCONFIG_PACKAGE_STRING :=
|
|
506
|
-
export RBCONFIG_PACKAGE_VERSION :=
|
|
507
|
-
export RBCONFIG_PACKAGE_TARNAME :=
|
|
508
|
-
export RBCONFIG_PACKAGE_NAME :=
|
|
509
|
-
export RBCONFIG_PATH_SEPARATOR := :
|
|
510
|
-
export RBCONFIG_UNICODE_VERSION := 15.0.0
|
|
511
|
-
export RBCONFIG_UNICODE_EMOJI_VERSION := 15.0
|
|
512
|
-
export RBCONFIG_platform := x86_64-linux
|
|
513
|
-
export RBCONFIG_archdir := /nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/lib/ruby/3.4.0/x86_64-linux
|
|
514
|
-
export RBCONFIG_topdir := .
|
|
515
|
-
export RBCONFIG_srcdir := .
|
|
516
|
-
export RUSTFLAGS := $(RB_SYS_GLOBAL_RUSTFLAGS) $(RB_SYS_EXTRA_RUSTFLAGS) $(RUSTFLAGS)
|
|
517
|
-
|
|
518
|
-
FORCE: ;
|
|
519
|
-
|
|
520
|
-
RB_SYS_FORCE_INSTALL_RUST_TOOLCHAIN ?= false
|
|
521
|
-
|
|
522
|
-
# Only run if the we are told to explicitly install the Rust toolchain
|
|
523
|
-
ifneq ($(RB_SYS_FORCE_INSTALL_RUST_TOOLCHAIN),false)
|
|
524
|
-
RB_SYS_RUSTUP_PROFILE ?= minimal
|
|
525
|
-
|
|
526
|
-
# If the user passed true, we assume stable Rust. Otherwise, use what
|
|
527
|
-
# was specified (i.e. RB_SYS_FORCE_INSTALL_RUST_TOOLCHAIN=beta)
|
|
528
|
-
ifeq ($(RB_SYS_FORCE_INSTALL_RUST_TOOLCHAIN),true)
|
|
529
|
-
RB_SYS_FORCE_INSTALL_RUST_TOOLCHAIN = stable
|
|
530
|
-
endif
|
|
531
|
-
|
|
532
|
-
# If a $RUST_TARGET is specified (i.e. for rake-compiler-dock), append
|
|
533
|
-
# that to the profile.
|
|
534
|
-
ifeq ($(RUST_TARGET),)
|
|
535
|
-
RB_SYS_DEFAULT_TOOLCHAIN = $(RB_SYS_FORCE_INSTALL_RUST_TOOLCHAIN)
|
|
536
|
-
else
|
|
537
|
-
RB_SYS_DEFAULT_TOOLCHAIN = $(RB_SYS_FORCE_INSTALL_RUST_TOOLCHAIN)-$(RUST_TARGET)
|
|
538
|
-
endif
|
|
539
|
-
|
|
540
|
-
# Since we are forcing the installation of the Rust toolchain, we need
|
|
541
|
-
# to set these env vars unconditionally for the build.
|
|
542
|
-
export CARGO_HOME := $(RB_SYS_BUILD_DIR)/$(RB_SYS_DEFAULT_TOOLCHAIN)/cargo
|
|
543
|
-
export RUSTUP_HOME := $(RB_SYS_BUILD_DIR)/$(RB_SYS_DEFAULT_TOOLCHAIN)/rustup
|
|
544
|
-
export PATH := $(CARGO_HOME)/bin:$(RUSTUP_HOME)/bin:$(PATH)
|
|
545
|
-
export RUSTUP_TOOLCHAIN := $(RB_SYS_DEFAULT_TOOLCHAIN)
|
|
546
|
-
export CARGO := $(CARGO_HOME)/bin/cargo
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
$(CARGO):
|
|
550
|
-
$(Q) $(MAKEDIRS) $(CARGO_HOME) $(RUSTUP_HOME)
|
|
551
|
-
$(Q) curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --no-modify-path --profile $(RB_SYS_RUSTUP_PROFILE) --default-toolchain none -y
|
|
552
|
-
$(Q) $(CARGO_HOME)/bin/rustup toolchain install $(RB_SYS_DEFAULT_TOOLCHAIN) --profile $(RB_SYS_RUSTUP_PROFILE) || (sleep 5; $(Q) $(CARGO_HOME)/bin/rustup toolchain install $(RB_SYS_DEFAULT_TOOLCHAIN) --profile $(RB_SYS_RUSTUP_PROFILE)) || (sleep 5; $(Q) $(CARGO_HOME)/bin/rustup toolchain install $(RB_SYS_DEFAULT_TOOLCHAIN) --profile $(RB_SYS_RUSTUP_PROFILE))
|
|
553
|
-
$(Q) $(CARGO_HOME)/bin/rustup default $(RB_SYS_DEFAULT_TOOLCHAIN) || (sleep 5; $(Q) $(CARGO_HOME)/bin/rustup default $(RB_SYS_DEFAULT_TOOLCHAIN)) || (sleep 5; $(Q) $(CARGO_HOME)/bin/rustup default $(RB_SYS_DEFAULT_TOOLCHAIN))
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
$(RUSTLIB): $(CARGO)
|
|
557
|
-
endif
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
$(TIMESTAMP_DIR)/.sitearchdir.time:
|
|
561
|
-
$(Q) $(MAKEDIRS) $(@D) $(RUBYARCHDIR)
|
|
562
|
-
$(Q) $(TOUCH) $@
|
|
563
|
-
|
|
564
|
-
$(RUSTLIB): FORCE
|
|
565
|
-
$(ECHO) generating $(@) \("$(RB_SYS_CARGO_PROFILE)"\)
|
|
566
|
-
$(CARGO) rustc $(RB_SYS_EXTRA_CARGO_ARGS) --manifest-path $(RB_SYS_CARGO_MANIFEST_DIR)/Cargo.toml --target-dir $(RB_SYS_CARGO_TARGET_DIR) --lib $(RB_SYS_CARGO_PROFILE_FLAG) -- -C linker=gcc -L native=/nix/store/hv07mmxxn317sm2qy7gcj2552zdy3shd-ruby-3.4.7/lib -C link-arg=-lm -l pthread
|
|
567
|
-
|
|
568
|
-
$(DLLIB): $(RUSTLIB)
|
|
569
|
-
$(Q) $(COPY) "$(RUSTLIB)" $@
|
|
570
|
-
$(Q) $(POSTLINK)
|
|
571
|
-
|
|
572
|
-
install-so: $(DLLIB) $(TIMESTAMP_DIR)/.sitearchdir.time
|
|
573
|
-
$(ECHO) installing $(DLLIB) to $(RUBYARCHDIR)
|
|
574
|
-
|
|
575
|
-
$(Q) $(MAKEDIRS) $(RUBYARCHDIR)
|
|
576
|
-
$(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
|
|
577
|
-
|
|
578
|
-
gemclean:
|
|
579
|
-
$(ECHO) Cleaning gem artifacts
|
|
580
|
-
-$(Q)$(RM_RF) $(RUBYGEMS_CLEAN_DIRS) 2> /dev/null || true
|
|
581
|
-
|
|
582
|
-
install: install-so
|
|
583
|
-
|
|
584
|
-
all: $(DLLIB)
|
|
Binary file
|
data/ext/amoskeag/mkmf.log
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
find_executable: checking for gcc... -------------------- yes
|
|
2
|
-
|
|
3
|
-
--------------------
|
|
4
|
-
|
|
5
|
-
find_executable: checking for g++... -------------------- yes
|
|
6
|
-
|
|
7
|
-
--------------------
|
|
8
|
-
|
|
9
|
-
find_executable: checking for ar... -------------------- yes
|
|
10
|
-
|
|
11
|
-
--------------------
|
|
12
|
-
|
|
13
|
-
find_executable: checking for install_name_tool... -------------------- no
|
|
14
|
-
|
|
15
|
-
--------------------
|
|
16
|
-
|