libSM: use native libuuid when building on MacOS X
On Linux, <uuid/uuid.h> and related functions are provided by the util-linux-ng package, which doesn't build on other operating systems, such as MacOS X. That platform provides libuuid as part of the system. Hence, to build libSM on MacOS, we define (empty) variables LIBUUID_CFLAGS and LIBUUID_CFLAGS. Those settings disable ./configure's attempt to detect libuuid with pkgconfig -- which would fail. svn path=/nixpkgs/trunk/; revision=17600
This commit is contained in:
@@ -614,6 +614,7 @@ let
|
||||
url = mirror://xorg/X11R7.4/src/everything/libSM-1.1.0.tar.bz2;
|
||||
sha256 = "10iap6ydxmk0g5qcfnsf9yc30fhvqshgppm0sca21y0z5qwaqdkm";
|
||||
};
|
||||
configureFlags = if stdenv.system == "i686-darwin" then "LIBUUID_CFLAGS='' LIBUUID_LIBS=''" else "";
|
||||
buildInputs = [pkgconfig libICE libuuid xproto xtrans ];
|
||||
})) // {inherit libICE libuuid xproto xtrans ;};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user