summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.cc b/src/main.cc
index a3a7d2c9..5d6cbac4 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -485,7 +485,7 @@ void compileOutput( const char *argv0, const bool inSource, char *srcLocation )
" -I%s/../aapl"
" -I%s/include"
" -L%s"
- " -Wl,-rpath,%s",
+ " %s/libcolm.a",
binaryFn, intermedFn, srcLocation,
srcLocation, location, location );
}
@@ -510,7 +510,9 @@ void compileOutput( const char *argv0, const bool inSource, char *srcLocation )
strcat( command, " -L" );
strcat( command, *lp );
}
- strcat( command, " -lcolm" );
+
+ if ( !inSource )
+ strcat( command, " -lcolm" );
if( !compileOutputCommand( command ) && run )
runOutputProgram();