Browse Source

nswitch: do not link libstdc++ to game libraries

fix-cwd-path
fgsfds 2 years ago
parent
commit
c6da23892f
  1. 5
      scripts/waifulib/xcompile.py

5
scripts/waifulib/xcompile.py

@ -429,8 +429,9 @@ class NintendoSwitch:
return linkflags return linkflags
def ldflags(self): def ldflags(self):
# system libraries implicitly require math and C++ standard library # NOTE: shared libraries should be built without standard libs, so that they could import their contents from the NRO,
ldflags = ['-lm', '-lstdc++'] # but executables, including the SDL2 sanity check, will generally require libstdc++ and libm, which we will add manually
ldflags = [] # ['-lm', '-lstdc++']
return ldflags return ldflags
def options(opt): def options(opt):

Loading…
Cancel
Save