mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 19:41:57 +00:00
[GCC-COMPAT] Add support library for GCC's libsupc++ and libstdc++
__throw_out_of_range_fmt is implemented in libstdc++, but it is needed by libsupc++ and that would mean we would have to link all C++ code to libstdc++.
This commit is contained in:
parent
486a20dbc4
commit
fcbccaa194
6 changed files with 97 additions and 2 deletions
|
@ -579,8 +579,8 @@ add_library(libsupc++ STATIC IMPORTED GLOBAL)
|
|||
execute_process(COMMAND ${GXX_EXECUTABLE} -print-file-name=libsupc++.a OUTPUT_VARIABLE LIBSUPCXX_LOCATION)
|
||||
string(STRIP ${LIBSUPCXX_LOCATION} LIBSUPCXX_LOCATION)
|
||||
set_target_properties(libsupc++ PROPERTIES IMPORTED_LOCATION ${LIBSUPCXX_LOCATION})
|
||||
# libsupc++ requires libgcc
|
||||
target_link_libraries(libsupc++ INTERFACE libgcc)
|
||||
# libsupc++ requires libgcc and stdc++compat
|
||||
target_link_libraries(libsupc++ INTERFACE libgcc stdc++compat)
|
||||
|
||||
add_library(libmingwex STATIC IMPORTED)
|
||||
execute_process(COMMAND ${GXX_EXECUTABLE} -print-file-name=libmingwex.a OUTPUT_VARIABLE LIBMINGWEX_LOCATION)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue