I am having problem with build xCode - "Release GCC (ARM) - of the program which uses sqlite library. The error message is:

ld: cannot find -lsqlite3
collect2: ld returned 1 exit status
Command /Users/kkm/.config/marmalade/root/s3e/bin/wrappers/arm-none-eabi-g++ failed with exit code 1

I have included Sqlite.c and sqlite.h (amalgamation) and also linked binary with library "libsqlite3.dylib". I use also marmalade SDK 6.1. Surprisingly the error does NOT appear with build - "Debug (x86)".

Do you have any ideas how to solve the issue?