forked from 0ad/0ad
fix for the underscore problem in the assembler symbols
This was SVN commit r2766.
This commit is contained in:
parent
ee35659dc7
commit
a7e0c3d0ac
@ -377,8 +377,11 @@ static int writeCppPackage(Package* package)
|
||||
{
|
||||
/* nasm -f elf -o $@ $<
|
||||
nasm -M -o $@ $< >OBJ_DIR/$*.P */
|
||||
fprintf(file, "\t%snasm -f elf -o $@ $<\n", prefix);
|
||||
fprintf(file, "\t%snasm -M -o $@ $< >$(<F).d\n", prefix);
|
||||
const char *extraOpts="";
|
||||
if (strcmp(osIdent, "windows"))
|
||||
extraOpts="-dDONT_USE_UNDERLINE=1";
|
||||
fprintf(file, "\t%snasm %s -f elf -o $@ $<\n", prefix, extraOpts);
|
||||
fprintf(file, "\t%snasm %s -M -o $@ $< >$(<F).d\n", prefix, extraOpts);
|
||||
}
|
||||
else
|
||||
fprintf(file, "\t%s$(CXX) $(CXXFLAGS) -MD -o $@ -c $<\n", prefix);
|
||||
|
@ -86,4 +86,4 @@ extern void setProjectOption(char* option);
|
||||
|
||||
// Access to the lua objects
|
||||
extern int getProject();
|
||||
extern const char* getString(int ref, char* name);
|
||||
extern const char* getString(int ref, char* name);
|
||||
|
Loading…
Reference in New Issue
Block a user