git.annexia.org
/
autobuildrequires.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
846f1af
)
Search for /lib/libc.so.6 on 32 bit platforms (Rajeesh K Nambiar).
author
Richard Jones
<rjones@redhat.com>
Mon, 9 Mar 2009 16:13:04 +0000
(16:13 +0000)
committer
Richard Jones
<rjones@redhat.com>
Mon, 9 Mar 2009 16:13:04 +0000
(16:13 +0000)
auto-buildrequires-preload.c
patch
|
blob
|
history
diff --git
a/auto-buildrequires-preload.c
b/auto-buildrequires-preload.c
index
7b9bdc1
..
a1e6773
100644
(file)
--- 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 <rjones@redhat.com>
/* Automatic generation of BuildRequires dependencies for rpmbuild.
* Copyright (C) 2008 Red Hat Inc.
* Written by Richard W.M. Jones <rjones@redhat.com>
+ * Patches from Rajeesh K Nambiar <rajeeshknambiar@gmail.com>
*
* 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
*
* 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);
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 ();
if (dl == NULL) {
fprintf (stderr, "%s\n", dlerror ());
abort ();