diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2016-08-17 14:31:25 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2016-08-22 16:43:26 +0000 |
commit | 60f9d69e016b11c468c98ea75ba0a60c44afbbc4 (patch) | |
tree | ecb49581a9e41a37943c22cd9ef3f63451b20ee7 /import-layers/yocto-poky/meta/recipes-support/rng-tools/rng-tools/uclibc-libuargp-configure.patch | |
parent | e18c61205e0234b03697129c20cc69c9b3940efc (diff) | |
download | blackbird-openbmc-60f9d69e016b11c468c98ea75ba0a60c44afbbc4.tar.gz blackbird-openbmc-60f9d69e016b11c468c98ea75ba0a60c44afbbc4.zip |
yocto-poky: Move to import-layers subdir
We are going to import additional layers, so create a subdir to
hold all of the layers that we import with git-subtree.
Change-Id: I6f732153a22be8ca663035c518837e3cc5ec0799
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Diffstat (limited to 'import-layers/yocto-poky/meta/recipes-support/rng-tools/rng-tools/uclibc-libuargp-configure.patch')
-rw-r--r-- | import-layers/yocto-poky/meta/recipes-support/rng-tools/rng-tools/uclibc-libuargp-configure.patch | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/import-layers/yocto-poky/meta/recipes-support/rng-tools/rng-tools/uclibc-libuargp-configure.patch b/import-layers/yocto-poky/meta/recipes-support/rng-tools/rng-tools/uclibc-libuargp-configure.patch new file mode 100644 index 000000000..e691315d1 --- /dev/null +++ b/import-layers/yocto-poky/meta/recipes-support/rng-tools/rng-tools/uclibc-libuargp-configure.patch @@ -0,0 +1,63 @@ +In case of uclibc, use libuargp + +If we use uclibc for system libraries, select libuargp + +Upstream-Status: Pending + +Signed-off-by: Maxin B. John <maxin.john@intel.com> +--- +diff -Naur rng-tools-5-orig/configure.ac rng-tools-5/configure.ac +--- rng-tools-5-orig/configure.ac 2016-02-24 18:11:24.023690235 +0200 ++++ rng-tools-5/configure.ac 2016-02-24 18:14:49.763118138 +0200 +@@ -39,6 +39,13 @@ + [with_libargp=check] + ) + ++AC_ARG_ENABLE([uclibc], ++ AS_HELP_STRING([--enable-uclibc], [Use uclibc for system libraries]), ++ use_uclibc=yes, use_uclibc=no) ++AM_CONDITIONAL(USE_UCLIBC, test "x$use_uclibc" = "xyes") ++AS_IF([test "x$use_uclibc" = "xyes"], [AC_DEFINE(USE_UCLIBC)]) ++AH_TEMPLATE([USE_UCLIBC], [Defined if uclibc libraries are used.]) ++ + dnl Make sure anyone changing configure.ac/Makefile.am has a clue + AM_MAINTAINER_MODE + +@@ -101,7 +108,7 @@ + [need_libargp=no], + [need_libargp=yes + if test "x$with_libargp" = "xno"; then +- AC_MSG_FAILURE([libargp disabled and libc does not have argp]) ++ AC_MSG_WARN([libargp disabled and libc does not have argp]) + fi] + ) + ], +@@ -110,7 +117,7 @@ + + dnl Check for libargp + AS_IF( +- [test "x$need_libargp" = "xyes"], ++ [test "x$need_libargp" = "xyes" -a "x$use_uclibc" = "xno"], + [ + AC_CHECK_LIB( + [argp], +@@ -120,6 +127,19 @@ + ) + ] + ) ++ ++dnl Check for libuargp ++AS_IF( ++ [test "x$use_uclibc" = "xyes"], ++ [ ++ AC_CHECK_LIB( ++ [uargp], ++ [argp_parse], ++ [LIBS="$LIBS -luargp"], ++ [AC_MSG_FAILURE([libuargp not found])] ++ ) ++ ] ++) + + dnl ----------------- + dnl Configure options |