libpthread-stubs

また新規のHomebrewのScriptを作ったのですが、テストを作るのが面倒でPRは出しません。
ていうか、実際にインストールされるファイルは1つだけというヘンテコで微妙なものだからです。

Project description
-------------------

Currently the project provides only a pkg-config [.pc] file, pthread-stubs.pc.
The latter contains the Cflags/Libs flags applicable to programs/libraries
that use only lightweight pthread API. See the next sections for the reasoning
and implementation details.

これのテストって言われても、何をすれば良いのやら。
ただし、効力はかなり強く、C++11を指定しないとbuild出来なかったいくつかのパッケージにおいて、stdを指定しなくともbuild出来るようになったパッケージがあります。あくまで、そのパッケージがあらかじめlibpthread-stubsに対応していた場合のみですが。

The following script installs libpthread-stubs on OSX with Homebrew.

class LibpthreadStubs < Formula
  desc "Weak aliases for pthread functions in libc"
  homepage "https://xcb.freedesktop.org/"
  url "https://xcb.freedesktop.org/dist/libpthread-stubs-0.4.tar.gz"
  sha256 "50d5686b79019ccea08bcbd7b02fe5a40634abcfd4146b6e75c6420cc170e9d9"

  depends_on "pkg-config" => :build

  def install
    system "./configure", "--disable-dependency-tracking",
                          "--disable-silent-rules",
                          "--prefix=#{prefix}"
    system "make"
    system "make", "install"
  end
end