File tree 4 files changed +20
-9
lines changed
4 files changed +20
-9
lines changed Original file line number Diff line number Diff line change 31
31
32
32
- run : ../build/bin/ldc2 --version
33
33
shell : bash
34
-
35
- - run : ldd ../build/bin/ldc2
36
- if : runner.os == 'Linux'
37
- shell : bash
Original file line number Diff line number Diff line change 24
24
fi
25
25
echo "DMD=$DMD" >> $GITHUB_ENV
26
26
27
+ - name : ' Alpine: Set DFLAGS environment variable (-Xcc=-static)' # for fully statically linked dub etc.
28
+ if : inputs.os == 'alpine'
29
+ shell : bash
30
+ run : |
31
+ set -eux
32
+ echo "DFLAGS=-Xcc=-static${DFLAGS:+ $DFLAGS}" >> $GITHUB_ENV
33
+
27
34
- name : Build & copy dub
28
35
shell : bash
29
36
run : |
85
92
../installed/bin/reggae --version -b ninja
86
93
fi
87
94
95
+ - name : ' Linux: List executable dependencies'
96
+ if : runner.os == 'Linux'
97
+ shell : bash
98
+ run : |
99
+ set -euxo pipefail
100
+ cd ../installed/bin
101
+ for i in *; do
102
+ ls -lh $i
103
+ readelf -d $i | grep NEEDED || true
104
+ done
105
+
88
106
- name : Pack installation dir
89
107
shell : bash
90
108
run : |
Original file line number Diff line number Diff line change 67
67
-DCOMPILER_RT_LIBDIR_OS=linux
68
68
-DLDC_INSTALL_LLVM_RUNTIME_LIBS_ARCH=x86_64
69
69
-DTEST_COMPILER_RT_LIBRARIES="profile;lsan;asan;msan;fuzzer"
70
- -DCMAKE_EXE_LINKER_FLAGS=-static-libstdc++
70
+ -DCMAKE_EXE_LINKER_FLAGS=-static
71
71
-DJITRT_EXTRA_LDFLAGS=-static-libstdc++
72
- -DD_COMPILER_FLAGS="-O -flto=full"
72
+ -DD_COMPILER_FLAGS="-O -flto=full -Xcc=-static "
73
73
# FIXME: -defaultlib=phobos2-ldc-lto,druntime-ldc-lto
74
74
with_pgo : false
75
75
Original file line number Diff line number Diff line change @@ -136,9 +136,6 @@ if("${C_SYSTEM_LIBS}" STREQUAL "AUTO")
136
136
set (C_SYSTEM_LIBS m c)
137
137
elseif ("${TARGET_SYSTEM} " MATCHES "Linux" )
138
138
set (C_SYSTEM_LIBS m pthread rt dl)
139
- if ("${TARGET_SYSTEM} " MATCHES "musl" )
140
- list (APPEND C_SYSTEM_LIBS "unwind" )
141
- endif ()
142
139
elseif ("${TARGET_SYSTEM} " MATCHES "FreeBSD" )
143
140
set (C_SYSTEM_LIBS m pthread execinfo z)
144
141
else ()
You can’t perform that action at this time.
0 commit comments