[pcre-dev] [Bug 849] PCRE_STATIC is not present in pkg-conf…

Top Page
Delete this message
Author: Philip Hazel
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 849] PCRE_STATIC is not present in pkg-config-provided CFLAGS when needed
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=849




--- Comment #1 from Philip Hazel <ph10@???> 2009-05-24 16:44:48 ---
On Sat, 23 May 2009, Alexander Shaduri wrote:

> I used mingw cross-compiler to compile both pcre (static library only)
> and my program, and I had to specify -DPCRE_STATIC manually when
> compiling my program. The thing is, the user who builds a third-party
> program doesn't have to set some compiler flags depending on how one
> of the dependent libraries was compiled. That's what pkg-config is
> for.
>
> So, I'm attaching a patch which adds -DPCRE_STATIC option (depending
> on whether pcre was compiled statically or not) to cflags in
> libpcre.pc, libpcrecpp.pc and pcre-config.


That sounds very reasonable. I won't be working on PCRE for a while, but
I will look at this when I do. Thanks for the patch.

Regards,
Philip


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email