2.5 Using Libtool

The easiest way is to just use GNU Libtool. If you use libtool, and link to libgpgme.la, everything will be done automatically by Libtool.