anisette is done, how to sign?
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
#include "target.h"
|
||||
#include "tier0/lib.h"
|
||||
#include "tier0/platform.h"
|
||||
#include "tier1/commandline.h"
|
||||
#include "tier0/commandline.h"
|
||||
#include "tier1/interface.h"
|
||||
#include "tier1/utlstring.h"
|
||||
#include "tier1/utlvector.h"
|
||||
|
||||
@@ -161,7 +161,18 @@ void CClangLinker::LinkFile( CUtlVector<CUtlString> &cmd, const char *szName )
|
||||
|
||||
void CClangLinker::LinkLibraryObject( CUtlVector<CUtlString> &cmd, const char *szName )
|
||||
{
|
||||
cmd.AppendTail(szName);
|
||||
CUtlString szDir = CUtlString(szName).GetDirectory();
|
||||
CUtlString szFileName = CUtlString(szName).GetFileName();
|
||||
if (!V_strncmp(szFileName, "lib",3))
|
||||
szFileName.RemoveHead(3);
|
||||
if (!V_strncmp(szFileName.GetFileExtension(), "so",2))
|
||||
szFileName.RemoveTail(3);
|
||||
if (!V_strncmp(szFileName.GetFileExtension(), "a",1))
|
||||
szFileName.RemoveTail(2);
|
||||
cmd.AppendTail("-L");
|
||||
cmd.AppendTail(szDir);
|
||||
cmd.AppendTail("-l");
|
||||
cmd.AppendTail(szFileName);
|
||||
}
|
||||
|
||||
void CClangLinker::LinkLibrary( CUtlVector<CUtlString> &cmd, const char *szName )
|
||||
|
||||
Reference in New Issue
Block a user