--- create-localdecls.orig Mon Aug 26 19:40:31 2002 +++ create-localdecls Mon Dec 16 18:47:33 2002 @@ -12,10 +12,13 @@ OUTFILE='localdecls.h' +# if your arch needs to dlopen() glibc, add it here separated by space :] +BROKEN_RTLD_ARCHLIST="mips" + echo '/* This file is automatically generated *' > $OUTFILE echo ' * Modify create-localdecls instead of this */' >> $OUTFILE echo >> $OUTFILE -echo '#ifndef __LOCALDECLS_H_' > $OUTFILE +echo '#ifndef __LOCALDECLS_H_' >> $OUTFILE echo '#define __LOCALDECLS_H_' >> $OUTFILE echo >> $OUTFILE @@ -45,6 +48,16 @@ if test "$VERSION" = 'libc.so.5' ; then echo '#define BROKEN_RTLD_NEXT' >> $OUTFILE echo '#define LIBC 5' >> $OUTFILE +else + # for the arch's that need to dlopen() libc to fetch real funcs! + # 16.12.02 -Torgeir Hansen + MYARCH=`/bin/uname -m` + for x in $BROKEN_RTLD_ARCHLIST; do + if [ $x = $MYARCH ]; then + echo '#define BROKEN_RTLD_NEXT' >> $OUTFILE + fi + done + fi if test "$VERSION" = 'libc.so.6' ; then