From: Richard Jones Date: Mon, 9 Mar 2009 16:13:04 +0000 (+0000) Subject: Search for /lib/libc.so.6 on 32 bit platforms (Rajeesh K Nambiar). X-Git-Tag: v1.2~10 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;ds=sidebyside;h=6d3e972d866582de11197f8ef40a4062b8abe5b2;p=autobuildrequires.git Search for /lib/libc.so.6 on 32 bit platforms (Rajeesh K Nambiar). --- 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 ();