Skip to content

Commit

Permalink
Try adding --rpath
Browse files Browse the repository at this point in the history
  • Loading branch information
eightbitraptor committed Sep 27, 2024
1 parent 3656d6e commit 99b5768
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,17 @@ jobs:
- name: Build shared GC (${{ matrix.gc_name }})
run: |
mkdir ${{ matrix.shared_gc_dir }} &&
gcc -shared -I../src/include -I../src -I.ext/include/x86_64-linux -Wl,--verbose,--compress-debug-sections=zlib -L../src/gc/mmtk/target/release -lmmtk_ruby -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 -DBUILDING_SHARED_GC -fPIC -o /home/runner/ruby_gc/librubygc.mmtk.so ../src/gc/mmtk.c &&
gcc --version &&
ldd --version &&
gcc -shared \
-I../src/include \
-I../src \
-I.ext/include/x86_64-linux \
-Wl,--verbose,--compress-debug-sections=zlib \
-Wl,--rpath=../src/gc/mmtk/target/release
-L../src/gc/mmtk/target/release -lmmtk_ruby \
-fstack-protector-strong \
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 \
-O3 -fno-fast-math -ggdb3 -DBUILDING_SHARED_GC -fPIC \
-o /home/runner/ruby_gc/librubygc.mmtk.so ../src/gc/mmtk.c &&
ldd ${{ matrix.shared_gc_dir }}/librubygc.mmtk.so
if: ${{ matrix.shared_gc }}

Expand Down

0 comments on commit 99b5768

Please sign in to comment.