mirror of
https://github.com/reactos/reactos.git
synced 2026-09-12 20:59:19 +08:00
rbuild: improve r37786 a bit
- Link to libgcc_eh for C++ apps. svn path=/branches/ros-amd64-bringup/; revision=39416
This commit is contained in:
@@ -545,9 +545,10 @@ MingwBackend::GenerateGlobalVariables () const
|
||||
fprintf ( fMakefile, "PROJECT_LFLAGS := '$(shell ${TARGET_CC} -print-libgcc-file-name)' %s\n", GenerateProjectLFLAGS ().c_str () );
|
||||
fprintf ( fMakefile, "PROJECT_LPPFLAGS := '$(shell ${TARGET_CPP} -print-file-name=libstdc++.a)' '$(shell ${TARGET_CPP} -print-file-name=libgcc.a)' '$(shell ${TARGET_CPP} -print-file-name=libmingw32.a)' '$(shell ${TARGET_CPP} -print-file-name=libmingwex.a)'\n" );
|
||||
/* hack to get libgcc_eh.a, should check mingw version or something */
|
||||
fprintf ( fMakefile, "ifeq ($(ARCH),amd64)\n" );
|
||||
fprintf ( fMakefile, "PROJECT_LPPFLAGS += '$(shell ${TARGET_CPP} -print-file-name=libgcc_eh.a)'\n" );
|
||||
fprintf ( fMakefile, "endif\n" );
|
||||
if (Environment::GetArch() == "amd64")
|
||||
{
|
||||
fprintf ( fMakefile, "PROJECT_LPPFLAGS += '$(shell ${TARGET_CPP} -print-file-name=libgcc_eh.a)'\n" );
|
||||
}
|
||||
fprintf ( fMakefile, "PROJECT_GCCOPTIONS += -Wall\n" );
|
||||
fprintf ( fMakefile, "ifneq ($(OARCH),)\n" );
|
||||
fprintf ( fMakefile, "PROJECT_GCCOPTIONS += -march=$(OARCH)\n" );
|
||||
|
||||
Reference in New Issue
Block a user