[Pkg-shadow-devel] [PATCH] Enable cross-compiling with subordinate IDs support

Bogdan Purcareata bogdan.purcareata at freescale.com
Wed Oct 22 21:51:11 UTC 2014


When cross-compiling, the test to check glibc support fails by default. Since
there is no way of running the test on a different platform, set the default
value when cross compiling to "yes". The fix is better than eliminating the
test alltogether, and it enables subordinate IDs support for cross-builds
(Yocto).

Signed-off-by: Bogdan Purcareata <bogdan.purcareata at freescale.com>
---
 configure.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.in b/configure.in
index 1a3f841..1bc97d0 100644
--- a/configure.in
+++ b/configure.in
@@ -342,7 +342,7 @@ int main(void) {
 	gid_t g;
 	return (sizeof u < 4) || (sizeof g < 4);
 }
-	])], [id32bit="yes"], [id32bit="no"])
+	])], [id32bit="yes"], [id32bit="no"], [id32bit="yes"])
 
 	if test "x$id32bit" = "xyes"; then
 		AC_DEFINE(ENABLE_SUBIDS, 1, [Define to support the subordinate IDs.])
-- 
1.9.rc1




More information about the Pkg-shadow-devel mailing list