X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=auto-buildrequires-preload.c;h=a1e67733a86acd8881d2c49caaeb726a3668308f;hb=e4bea38d3c0bb10ee187a43ff71b54ab6770940a;hp=7b9bdc12d6c5ed1fa43ab6d5cfaa5c89d94acc4d;hpb=be47db56fdf19436c14781c0de6977d2b7eaaf3d;p=autobuildrequires.git 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 ();