Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 12236
Collapse All | Expand All

(-)create-localdecls.orig (-1 / +14 lines)
Lines 12-21 Link Here
12
12
13
OUTFILE='localdecls.h'
13
OUTFILE='localdecls.h'
14
14
15
# if your arch needs to dlopen() glibc, add it here separated by space :]
16
BROKEN_RTLD_ARCHLIST="mips"
17
15
echo '/* This file is automatically generated     *' > $OUTFILE
18
echo '/* This file is automatically generated     *' > $OUTFILE
16
echo ' * Modify create-localdecls instead of this */' >> $OUTFILE
19
echo ' * Modify create-localdecls instead of this */' >> $OUTFILE
17
echo >> $OUTFILE
20
echo >> $OUTFILE
18
echo '#ifndef __LOCALDECLS_H_' > $OUTFILE
21
echo '#ifndef __LOCALDECLS_H_' >> $OUTFILE
19
echo '#define __LOCALDECLS_H_' >> $OUTFILE
22
echo '#define __LOCALDECLS_H_' >> $OUTFILE
20
echo >> $OUTFILE
23
echo >> $OUTFILE
21
24
Lines 45-50 Link Here
45
if test "$VERSION" = 'libc.so.5' ; then
48
if test "$VERSION" = 'libc.so.5' ; then
46
	echo '#define BROKEN_RTLD_NEXT' >> $OUTFILE
49
	echo '#define BROKEN_RTLD_NEXT' >> $OUTFILE
47
	echo '#define LIBC 5' >> $OUTFILE
50
	echo '#define LIBC 5' >> $OUTFILE
51
else
52
	# for the arch's that need to dlopen() libc to fetch real funcs!
53
	# 16.12.02 -Torgeir Hansen <torgeir@trenger.ro>
54
	MYARCH=`/bin/uname -m`
55
	for x in $BROKEN_RTLD_ARCHLIST; do
56
		if [ $x = $MYARCH ]; then
57
			echo '#define BROKEN_RTLD_NEXT' >> $OUTFILE
58
		fi
59
	done
60
48
fi
61
fi
49
62
50
if test "$VERSION" = 'libc.so.6' ; then
63
if test "$VERSION" = 'libc.so.6' ; then

Return to bug 12236