Skip to content

Commit

Permalink
Use the executable name for FreeBSD more thoroughly
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Oct 4, 2023
1 parent 6ae4bd4 commit fc5f353
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions kmake/src/Exporters/FreeBSDExporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,12 @@ export class FreeBSDExporter extends Exporter {

let cpp = '';

let output = '-o "' + project.getSafeName() + '"';
let output = '-o "' + executableName + '"';
if (options.lib) {
output = '-o "' + project.getSafeName() + '.a"';
output = '-o "' + executableName + '.a"';
}
else if (options.dynlib) {
output = '-shared -o "' + project.getSafeName() + '.so"';
output = '-shared -o "' + executableName + '.so"';
}
this.p('\t' + (options.lib ? 'ar rcs' : cppCompiler) + ' ' + output + ' ' + cpp + ' ' + optimization + ' ' + ofilelist + ' $(LIB)');

Expand Down
6 changes: 3 additions & 3 deletions lib/kmake/Exporters/FreeBSDExporter.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fc5f353

Please sign in to comment.