I got rid of the shlib-calls-exit by letting CMake replace the exit() call with an abort call(). Maybe it could have been done in other ways, but I made use of plain text replacement in the flex generated source code. http://stackoverflow.com/questions/13364139/lintian-reports-shlib-calls-exit-from-flex-generated-source-code-when-building-a cheers, Erik Sjölund