|
|
@ -189,7 +189,8 @@ def build(bld): |
|
|
|
# HACK: link in the entirety of libstdc++ so that dynamic libs could use all of it without manual exporting |
|
|
|
# HACK: link in the entirety of libstdc++ so that dynamic libs could use all of it without manual exporting |
|
|
|
# we can't do this right away because std::filesystem will complain about not having pathconf(), |
|
|
|
# we can't do this right away because std::filesystem will complain about not having pathconf(), |
|
|
|
# which we have defined in sys_nswitch.c |
|
|
|
# which we have defined in sys_nswitch.c |
|
|
|
bld.env.LDFLAGS += ['-Wl,--whole-archive', '-lstdc++', '-Wl,--no-whole-archive', '-lm'] |
|
|
|
# HACKHACK: disable implicit linking with libstdc++ to make the hack above work when linking as C++ program |
|
|
|
|
|
|
|
bld.env.LDFLAGS += ['-nostdlib++', '-Wl,--whole-archive', '-lstdc++', '-Wl,--no-whole-archive', '-lm'] |
|
|
|
|
|
|
|
|
|
|
|
if bld.env.DEST_OS == 'psvita': |
|
|
|
if bld.env.DEST_OS == 'psvita': |
|
|
|
libs += [ 'VRTLD' ] |
|
|
|
libs += [ 'VRTLD' ] |
|
|
|