From 6d3e972d866582de11197f8ef40a4062b8abe5b2 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Mon, 9 Mar 2009 16:13:04 +0000 Subject: [PATCH] Search for /lib/libc.so.6 on 32 bit platforms (Rajeesh K Nambiar). --- auto-buildrequires-preload.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/auto-buildrequires-preload.c b/auto-buildrequires-preload.c index 7b9bdc1..a1e6773 100644 --- a/auto-buildrequires-preload.c +++ b/auto-buildrequires-preload.c @@ -1,6 +1,7 @@ /* Automatic generation of BuildRequires dependencies for rpmbuild. * Copyright (C) 2008 Red Hat Inc. * Written by Richard W.M. Jones + * Patches from Rajeesh K Nambiar * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -191,6 +192,8 @@ br_init (void) void *dl; dl = dlopen ("/lib64/libc.so.6", RTLD_LAZY|RTLD_LOCAL); + if (dl == NULL) // Try '/lib/' also + dl = dlopen("/lib/libc.so.6", RTLD_LAZY|RTLD_LOCAL); if (dl == NULL) { fprintf (stderr, "%s\n", dlerror ()); abort (); -- 1.8.3.1