build: syms: fix *.def file for mach-o binary format

There was a missing trailing newline which caused some warnings when calling
`ld`.
This commit is contained in:
Stefano Pigozzi 2014-08-05 12:13:27 +02:00
parent 9a6d7af074
commit b34621e1b1
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ class compile_sym(Task):
elif self.env.DEST_BINFMT == 'elf': elif self.env.DEST_BINFMT == 'elf':
self.outputs[0].write('{ global:\n' + ';\n'.join(lsyms) + ";\nlocal: *; };\n") self.outputs[0].write('{ global:\n' + ';\n'.join(lsyms) + ";\nlocal: *; };\n")
elif self.env.DEST_BINFMT == 'mac-o': elif self.env.DEST_BINFMT == 'mac-o':
self.outputs[0].write('\n'.join("_"+sym for sym in lsyms)) self.outputs[0].write('\n'.join("_"+sym for sym in lsyms) + '\n')
else: else:
raise WafError('NotImplemented') raise WafError('NotImplemented')