Skip to content

Commit dc1761e

Browse files
static link stdc++
1 parent 30395ab commit dc1761e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ if is_unixy
140140
endif
141141
endif
142142

143-
link_args = cc.get_supported_link_arguments(['-Wl,-Bsymbolic-functions', '-Wl,-z,relro', '-Wl,--exclude-libs,ALL', '-lGL'])
143+
link_args = cc.get_supported_link_arguments(['-Wl,-Bsymbolic-functions', '-Wl,-z,relro', '-Wl,--exclude-libs,ALL', '-lGL', '-static-libstdc++'])
144144
# meson fails to check version-script so just force add
145145
link_args += '-Wl,--version-script,@0@'.format(join_paths(meson.current_source_dir(), 'mangohud.version'))
146146

0 commit comments

Comments
 (0)