<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Configure fails to find libpthread with CPPFLAG -H"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=59298">59298</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>cairo-bugs@cairographics.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Configure fails to find libpthread with CPPFLAG -H
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>cairo-bugs@cairographics.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Mac OS X (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>Peter_Dyballa@Freenet.DE
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>1.12.8
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>gl backend
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>cairo
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hello!

When configuring with

    env LANG=C
PATH=${HOME}/Softwaren64/bin:/usr/bin:/opt/local/x86_64-apple-darwin10.8.0/bin:/opt/local/bin:$PATH
./configure --prefix=${HOME}/Softwaren64 --with-pic --enable-static
--x-includes=/usr/X11/include --x-libraries=/usr/X11/lib
CPPFLAGS="-I${HOME}/Softwaren64/include -idirafter /usr/X11/include
-DCAIRO_NO_MUTEX=1" CFLAGS="-pipe -fPIC -fno-common -Os -march=core2
-mtune=core2 -m64 -fomit-frame-pointer -msse4.2" LDFLAGS="-m64
-Wl,-dead_strip_dylibs -L${HOME}/Softwaren64/lib"
PKG_CONFIG_PATH=${HOME}/Softwaren64/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X11/share/pkgconfig:/usr/X11/lib/pkgconfig

configure is more successful than when configuring with "verbose" compiler
flags (-H and -Wl,-t):

    env LANG=C
PATH=${HOME}/Softwaren64/bin:/usr/bin:/opt/local/x86_64-apple-darwin10.8.0/bin:/opt/local/bin:$PATH
./configure --prefix=${HOME}/Softwaren64 --with-pic --enable-static
--x-includes=/usr/X11/include --x-libraries=/usr/X11/lib CPPFLAGS="-H
-I${HOME}/Softwaren64/include -idirafter /usr/X11/include -DCAIRO_NO_MUTEX=1"
CFLAGS="-pipe -fPIC -fno-common -Os -march=core2 -mtune=core2 -m64
-fomit-frame-pointer -msse4.2" LDFLAGS="-m64 -Wl,-t -Wl,-dead_strip_dylibs
-L${HOME}/Softwaren64/lib"
PKG_CONFIG_PATH=${HOME}/Softwaren64/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X11/share/pkgconfig:/usr/X11/lib/pkgconfig

    checking for cairo's pthread feature... 
    checking whether cairo's pthread feature could be enabled... yes

    checking for cairo's cairo-trace feature... 
    checking whether cairo's cairo-trace feature could be enabled... yes

    The following features and utilities:
      cairo-trace:                yes
      cairo-script-interpreter:   yes

    And the following internal features:
      pthread:       yes
      gtk-doc:       no
      gcov support:  no
      symbol-lookup: no (requires bfd)
      test surfaces: no (disabled, use --enable-test-surfaces to enable)
      ps testing:    yes
      pdf testing:   no (requires poppler-glib >= 0.17.4)
      svg testing:   yes

vs.

    checking for cairo's pthread feature... 
    checking whether cairo's pthread feature could be enabled... no (can't link
with -lpthread or -pthread)

    checking for cairo's cairo-trace feature... 
    checking whether cairo's cairo-trace feature could be enabled... no
(requires dynamic linker and zlib and real pthreads)

    The following features and utilities:
      cairo-trace:                no (requires dynamic linker and zlib and real
pthreads)
      cairo-script-interpreter:   yes

    And the following internal features:
      pthread:       no (can't link with -lpthread or -pthread)
      gtk-doc:       no
      gcov support:  no
      symbol-lookup: no (requires bfd)
      test surfaces: no (disabled, use --enable-test-surfaces to enable)
      ps testing:    yes
      pdf testing:   no (requires poppler-glib >= 0.17.4)
      svg testing:   yes

I need -H and -Wl,-t to be sure that Cairo is built only from the selected
components.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>