configs: mx53loco: Bump U-Boot version to 2016.07
[buildroot-gz.git] / package / parted / 0003-fix-static-link-uuid.patch
blobd6ec2cf36574ebc521f3c5adc05afa3ec49b4852
1 configure: use pkg-config to find libuuid
3 In some conditions, libuuid may be linked with -lintl. This can be the
4 case on uClibc when locales are enabled.
6 When doing a shared link, this dependency is automatically pulled in via
7 a DT_NEEDED ELF tag
9 For a static link, there is no such mechanism to pull in dependent
10 libraries.
12 Currently, the check for libuuid is done with AC_CHECK_LIB, but this
13 does not handle dependencies, and thus a stattic build fails.
15 Use pkg-config to find libuuid, that automatically pulls in the
16 dependencies of libuuid, if any.
18 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
20 ---
21 Note: of course, that relies on the fact that libuuid installs a proper
22 .pc file; a patch will be submitted upstream shortly.
24 But even considering the current situation, where libuuid does not
25 provide a proper .pc file (yet), this patch does not change the
26 behaviour we've had so far; it is a bet on the future! ;-)
28 diff -durN parted-3.1.orig/configure.ac parted-3.1/configure.ac
29 --- parted-3.1.orig/configure.ac 2014-11-29 16:27:49.520560137 +0100
30 +++ parted-3.1/configure.ac 2014-11-29 16:32:50.799702049 +0100
31 @@ -313,16 +313,7 @@
32 AC_SUBST([DL_LIBS])
34 dnl Check for libuuid
35 -UUID_LIBS=""
36 -AC_CHECK_LIB([uuid], [uuid_generate], [UUID_LIBS="-luuid"],
37 - [AC_MSG_ERROR(dnl
38 -[GNU Parted requires libuuid - a part of the util-linux-ng package (but
39 -usually distributed separately in libuuid-devel, uuid-dev or similar)
40 -This can probably be found on your distribution's CD or FTP site or at:
41 - http://userweb.kernel.org/~kzak/util-linux-ng/
42 -Note: originally, libuuid was part of the e2fsprogs package. Later, it
43 -moved to util-linux-ng-2.16, and that package is now the preferred source.])])
44 -AC_SUBST([UUID_LIBS])
45 +PKG_CHECK_MODULES([UUID],[uuid])
47 dnl Check for libdevmapper
48 DM_LIBS=