summaryrefslogtreecommitdiff
path: root/debian/uclibc-dev.postinst
blob: dd559a32af7fff56f5979d575b3d1073358273d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

set -e

ldconfig

if [ "$1" = "configure" ]; then
    if [ -f /usr/lib/libintl.so.1 ] ; then
	    rm -f /usr/lib/libc.so
	    cat > /usr/lib/libc.so << EOF
/* GNU ld script
   Use the shared library, but some functions are only in
   the static library, so try that secondarily.  */
OUTPUT_FORMAT(elf32-i386)
GROUP ( /lib/libc.so.0 /usr/lib/libintl.so.1 )
EOF
	    chown root.root /usr/lib/libc.so
	    chmod 0644 /usr/lib/libc.so
    fi
fi

#DEBHELPER#