Fix linking failing when GDevelop is installed in a path containing spaces

This commit is contained in:
Victor Levasseur
2016-08-01 14:33:59 +02:00
parent a544666ea4
commit af8d2fc5d8
2 changed files with 7 additions and 7 deletions

View File

@@ -4,8 +4,8 @@
namespace AutoVersion{
//Date Version Types
static const char GDCore_DATE[] = "27";
static const char GDCore_MONTH[] = "06";
static const char GDCore_DATE[] = "01";
static const char GDCore_MONTH[] = "08";
static const char GDCore_YEAR[] = "2016";
//Software Status
@@ -16,11 +16,11 @@ namespace AutoVersion{
static const long GDCore_MAJOR = 4;
static const long GDCore_MINOR = 0;
static const long GDCore_BUILD = 92;
static const long GDCore_REVISION = 0;
static const long GDCore_REVISION = 1;
//Miscellaneous Version Types
#define GDCore_RC_FILEVERSION 4,0,92,0
#define GDCore_RC_FILEVERSION_STRING "4, 0, 92, 0\0"
static const char GDCore_FULLVERSION_STRING[] = "4.0.92.0";
#define GDCore_RC_FILEVERSION 4,0,92,1
#define GDCore_RC_FILEVERSION_STRING "4, 0, 92, 1\0"
static const char GDCore_FULLVERSION_STRING[] = "4.0.92.1";
}
#endif //GDCORE_VERSION_H

View File

@@ -140,7 +140,7 @@ gd::String CodeCompilerCall::GetFullCall() const
else //Generate argument for linking files
{
if(!compilationForRuntime)
args.push_back("-Wl,-rpath," + baseDir);
args.push_back("-Wl,-rpath,\"" + baseDir + "\"");
args.push_back("-shared");
if ( !inputFile.empty() ) args.push_back("\""+inputFile+"\"");
for (std::size_t i = 0;i<extraObjectFiles.size();++i)