Files
meta-openembedded/meta-oe/recipes-support
Marek Vasut f8bd86c9b2 nss: Fix build on Centos 7
Centos 7 has glibc 2.18 and nss-native build fails due to implicit
declaration of function putenv during build. This is because of the
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):

  putenv(): _XOPEN_SOURCE
      || /* Glibc since 2.19: */ _DEFAULT_SOURCE
      || /* Glibc versions <= 2.19: */ _SVID_SOURCE

and because nss coreconf/Linux.mk only defines

 -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE

So on such system with glibc 2.18, neither macro makes putenv()
available. Add -D_XOPEN_SOURCE for the Centos 7 and glibc 2.18
native build case.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Armin Kuster <akuster808@gmail.com>
Cc: Armin Kuster <akuster@mvista.com>
Cc: Khem Raj <raj.khem@gmail.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 30148b33b5)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2021-06-06 20:37:34 -07:00
..
2021-01-05 09:16:26 -08:00
2020-03-25 06:52:29 -07:00
2020-07-28 12:23:15 -07:00
2020-06-30 07:58:37 -07:00
2020-07-28 12:52:13 -07:00
2019-08-27 12:11:16 -07:00
2020-09-13 09:28:52 -07:00
2020-11-23 07:09:34 -08:00
2020-10-21 14:11:09 -07:00
2019-09-16 18:24:48 -07:00
2021-04-03 07:46:03 -07:00
2021-02-21 23:44:22 -08:00
2020-03-25 06:52:29 -07:00
2021-05-22 15:34:46 -07:00
2021-03-06 07:53:38 -08:00
2020-12-07 21:55:47 -08:00
2021-03-28 12:12:58 -07:00
2020-01-19 02:20:59 -08:00
2020-12-03 22:32:56 -08:00
2021-02-28 23:51:14 -08:00
2020-07-28 12:52:14 -07:00
2021-03-16 21:37:15 -07:00
2019-09-16 07:10:03 -07:00
2021-03-11 00:12:55 -08:00
2020-08-11 23:37:47 -07:00
2019-09-16 07:10:03 -07:00
2020-09-10 21:20:23 -07:00
2021-01-17 11:47:41 -08:00
2021-04-08 13:13:29 -07:00
2019-07-10 09:34:20 -07:00
2020-02-16 12:52:19 -08:00
2021-02-21 23:44:22 -08:00
2020-08-05 10:02:11 -07:00
2021-03-28 12:12:58 -07:00
2020-11-15 12:25:53 -08:00
2020-11-23 07:09:34 -08:00
2021-04-07 18:45:52 -07:00
2020-01-09 14:05:37 -08:00
2020-12-07 21:55:47 -08:00
2020-10-23 10:20:24 -07:00
2021-04-18 13:49:13 -07:00
2019-06-25 14:21:48 -07:00
2020-07-28 12:52:14 -07:00
2020-08-31 08:30:19 -07:00
2021-03-19 11:58:12 -07:00
2020-02-21 08:50:36 -08:00
2021-03-04 09:04:24 -08:00
2021-03-03 11:08:29 -08:00
2021-03-28 12:12:58 -07:00
2021-01-25 14:34:06 -08:00
2021-03-04 09:04:24 -08:00
2021-03-15 08:46:12 -07:00
2020-10-19 22:18:11 -07:00
2021-06-06 20:37:34 -07:00
2019-08-21 12:41:20 -07:00
2021-05-23 08:28:47 -07:00
2019-11-27 20:07:16 -08:00
2020-10-22 08:14:29 -07:00
2019-07-15 08:00:06 -07:00
2021-04-08 13:13:29 -07:00
2020-11-15 12:26:38 -08:00
2020-04-05 10:38:14 -07:00
2021-02-28 23:51:14 -08:00
2021-03-16 21:37:15 -07:00
2020-03-17 19:46:35 -07:00
2020-03-13 21:27:53 -07:00
2020-11-17 15:01:16 -08:00
2020-12-18 08:23:14 -08:00
2021-01-17 11:47:41 -08:00
2020-04-05 10:38:14 -07:00
2021-03-14 00:00:20 -08:00
2021-02-21 23:37:54 -08:00
2019-09-13 09:21:30 -07:00
2020-06-03 15:15:42 -07:00
2020-12-18 08:23:14 -08:00
2021-03-08 17:24:14 -08:00
2021-03-12 22:11:42 -08:00
2020-12-28 22:27:41 -08:00
2021-01-30 22:56:51 -08:00
2021-02-06 21:52:33 -08:00
2020-11-12 21:03:29 -08:00