------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1620
           Summary: Static linking against PCRE is missing pthread library
           Product: PCRE
           Version: 8.36
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Created an attachment (id=806)
 --> (http://bugs.exim.org/attachment.cgi?id=806)
Fix for PCRE-8.37-RC1

Static linking against 8.37-RC1 (and also other versions) PCRE library using
the pkg-config module fails on missing pthread symbols:

$ gcc -static pcredemo.c $(pkg-config --static --cflags --libs libpcre)
/usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../../../lib64/libpcre.a(libpcre_la-pcre_jit_compile.o):
In function `sljit_free_exec':
(.text+0x64a): undefined reference to `pthread_mutex_lock'

This is because libpcre.pc does declare the -lpthread in Libs.private. Attached
patch fixes it.


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

-- 
## List details at https://lists.exim.org/mailman/listinfo/pcre-dev 

Reply via email to