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

Page principale
Supprimer ce message
Auteur: Alexander Shaduri
Date:  
À: pcre-dev
Nouveaux-sujets: [pcre-dev] [Bug 849] PCRE_STATIC is not present in pkg-config-provided CFLAGS when needed
Sujet: [pcre-dev] [Bug 849] New: 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
           Summary: PCRE_STATIC is not present in pkg-config-provided CFLAGS
                    when needed
           Product: PCRE
           Version: 7.8
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
        AssignedTo: ph10@???
        ReportedBy: ashaduri@???
                CC: pcre-dev@???



Created an attachment (id=315)
--> (http://bugs.exim.org/attachment.cgi?id=315)
A patch that fixes this bug

Hello,

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.


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