[Lazarus] Lazarus project compile flags
Mattias Gaertner
nc-gaertnma at netcologne.de
Fri Jan 30 23:49:49 CET 2015
On Fri, 30 Jan 2015 16:58:19 -0500
Toan Pham <tpham3783 at gmail.com> wrote:
> Ideally, it would be nice to compile any fpc project using the following
> command:
>
> fpc `fpc-config --cflags --ldflags rtl,lcl,lcl-gtk2,paszlib` project1.lpr
>
> fpc-config is a utility that manages configuration of all packages, and
> knows where and what to pass along to the fpc compiler.
What do you mean with cflags?
ldflags can be passed directly to fpc with -k.
rtl and paszlib are part of standard FPC.
lcl and lcl-gtk2 need to be built prior to the project with separate
compiler calls (e.g. using make).
Many projects need more than calling the compiler to build.
Your system has everything to build gtk2 applications. And you
have the lcl, so you have the Lazarus sources. And you have built
them, so you have lazbuild. And you want to build a Lazarus project
using Lazarus packages.
Why can't you use lazbuild?
Mattias
More information about the Lazarus
mailing list