According to http://www.freepascal.org/docs-html/prog/progse30.html the smartlink option on the command line is -CX but in Lazarus ver 1.42, Compilation and Linking Linking Link Smart is -XX Dennis