summaryrefslogtreecommitdiff
path: root/debian/uclibc-dev.postinst
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-01-22 01:44:25 +0000
committerEric Andersen <andersen@codepoet.org>2004-01-22 01:44:25 +0000
commitea06b118f25f381cdc44cd80be5278dd9d52708a (patch)
tree3c965b18833fff02b5e6cf609debb8f5a18dd5b7 /debian/uclibc-dev.postinst
parentc2d1da448aaf0c69544093943bd543def2ad4b79 (diff)
Some minor debian junk I had sitting in my tree
Diffstat (limited to 'debian/uclibc-dev.postinst')
-rw-r--r--debian/uclibc-dev.postinst22
1 files changed, 22 insertions, 0 deletions
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#