fix for the underscore problem in the assembler symbols

This was SVN commit r2766.
This commit is contained in:
Simon Brenner 2005-09-26 05:39:58 +00:00
parent ee35659dc7
commit a7e0c3d0ac
2 changed files with 6 additions and 3 deletions

View File

@ -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);

View File

@ -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);