mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-21 07:13:13 +01:00
Fix #88 : pragma(lib, "str") is now converted to -lstr in the linker command line.
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include "template.h"
|
||||
#include "hdrgen.h"
|
||||
#include "port.h"
|
||||
#include "mem.h"
|
||||
|
||||
#include "gen/irstate.h"
|
||||
#include "gen/logger.h"
|
||||
@@ -2551,9 +2552,12 @@ int TypedefDeclaration::cvMember(unsigned char*)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void obj_includelib(char*)
|
||||
void obj_includelib(char* lib)
|
||||
{
|
||||
// FIXME: we want to support pragma(lib)
|
||||
char *arg = (char *)mem.malloc(64);
|
||||
strcpy(arg, "-l");
|
||||
strncat(arg, lib, 64);
|
||||
global.params.linkswitches->push(arg);
|
||||
}
|
||||
|
||||
void backend_init()
|
||||
|
||||
Reference in New Issue
Block a user