From ea06b118f25f381cdc44cd80be5278dd9d52708a Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 22 Jan 2004 01:44:25 +0000 Subject: Some minor debian junk I had sitting in my tree --- debian/uclibc-dev.postinst | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 debian/uclibc-dev.postinst (limited to 'debian/uclibc-dev.postinst') diff --git a/debian/uclibc-dev.postinst b/debian/uclibc-dev.postinst new file mode 100644 index 000000000..dd559a32a --- /dev/null +++ b/debian/uclibc-dev.postinst @@ -0,0 +1,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# -- cgit v1.2.3