Skip to content

Commit 5ecf748

Browse files
authored
Merge pull request #646 from larskanis/aarch64-linux
Add binary gem platform aarch64-linux
2 parents 0605e91 + 977a861 commit 5ecf748

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/binary-gems.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
- platform: "x64-mingw32"
2929
- platform: "x86-mingw32"
3030
- platform: "x86_64-linux"
31+
- platform: "aarch64-linux"
3132
- platform: "x86_64-darwin"
3233
- platform: "arm64-darwin"
3334
steps:
@@ -75,6 +76,9 @@ jobs:
7576
- os: ubuntu-latest
7677
ruby: "3.2"
7778
platform: "x86_64-linux"
79+
- os: ubuntu-24.04-arm
80+
ruby: "3.4"
81+
platform: "aarch64-linux"
7882
- os: macos-latest
7983
ruby: "3.4"
8084
platform: "arm64-darwin"

Rakefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ CrossLibraries = [
4949
['x86-mingw32', 'mingw', 'i686-w64-mingw32'],
5050
['x64-mingw32', 'mingw64', 'x86_64-w64-mingw32'],
5151
['x86_64-linux', 'linux-x86_64', 'x86_64-linux-gnu'],
52+
['aarch64-linux', 'linux-aarch64', 'aarch64-linux-gnu'],
5253
['x86_64-darwin', 'darwin64-x86_64', 'x86_64-apple-darwin'],
5354
['arm64-darwin', 'darwin64-arm64', 'arm64-apple-darwin'],
5455
].map do |platform, openssl_config, toolchain|

ext/extconf.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def install
159159

160160
recipe.host = toolchain
161161
recipe.configure_options << "CFLAGS=#{" -fPIC" if RUBY_PLATFORM =~ /linux|darwin/}"
162-
recipe.configure_options << "LDFLAGS=-L#{openssl_recipe.path}/lib -L#{openssl_recipe.path}/lib64 -L#{openssl_recipe.path}/lib-arm64 #{"-Wl,-soname,#{libpq_rubypg} -lgssapi_krb5 -lkrb5 -lk5crypto -lkrb5support" if RUBY_PLATFORM =~ /linux/} #{"-Wl,-install_name,@loader_path/../../ports/#{gem_platform}/lib/#{libpq_rubypg} -lgssapi_krb5 -lkrb5 -lk5crypto -lkrb5support -lresolv -framework Kerberos" if RUBY_PLATFORM =~ /darwin/}"
162+
recipe.configure_options << "LDFLAGS=-L#{openssl_recipe.path}/lib -L#{openssl_recipe.path}/lib64 -L#{openssl_recipe.path}/lib-arm64 #{"-Wl,-soname,#{libpq_rubypg} -lgssapi_krb5 -lkrb5 -lk5crypto -lkrb5support -ldl" if RUBY_PLATFORM =~ /linux/} #{"-Wl,-install_name,@loader_path/../../ports/#{gem_platform}/lib/#{libpq_rubypg} -lgssapi_krb5 -lkrb5 -lk5crypto -lkrb5support -lresolv -framework Kerberos" if RUBY_PLATFORM =~ /darwin/}"
163163
recipe.configure_options << "LIBS=-lkrb5 -lcom_err -lk5crypto -lkrb5support -lresolv" if RUBY_PLATFORM =~ /linux/
164164
recipe.configure_options << "LIBS=-lssl -lwsock32 -lgdi32 -lws2_32 -lcrypt32" if RUBY_PLATFORM =~ /mingw|mswin/
165165
recipe.configure_options << "CPPFLAGS=-I#{openssl_recipe.path}/include"

0 commit comments

Comments
 (0)