diff options
Diffstat (limited to 'src/main.cc')
-rw-r--r-- | src/main.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.cc b/src/main.cc index 301fae91..8ca395f0 100644 --- a/src/main.cc +++ b/src/main.cc @@ -485,7 +485,14 @@ void compileOutput( const char *argv0, const bool inSource, char *srcLocation ) " -I%s/../aapl" " -I%s/include" " -L%s" +#if defined(LINK_STATIC) " %s/libcolm.a", +#elif defined(LINK_SHARED) + " %s/libcolm.so", +#else +# error "must enabled at least one of shared or static libs" +#endif + binaryFn, intermedFn, srcLocation, srcLocation, location, location ); } |