summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cc b/src/main.cc
index aaf46e6f..c7f929f6 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -248,6 +248,9 @@ char *fileNameFromStem( const char *stemFile, const char *suffix )
void openOutputCompiled()
{
+ /* Start with the fn given by -o option. */
+ binaryFn = outputFn;
+
if ( binaryFn == 0 )
binaryFn = fileNameFromStem( inputFn, 0 );