1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/lang/linux-libgcc/pkg-install
Jean-Yves Lefort 941115a00f Add linux-libgcc.
This port contains a version of libgcc which is newer than the one shipped
with the default linux_base port.

WWW: http://gcc.gnu.org/
2005-11-26 19:33:32 +00:00

12 lines
363 B
Bash

#!/bin/sh
[ "$2" != "POST-INSTALL" ] && exit 0
if ! grep -q '^/lib/libgcc$' $PKG_PREFIX/etc/ld.so.conf; then
echo '/lib/libgcc' > $PKG_PREFIX/etc/ld.so.conf.tmp || exit 1
cat $PKG_PREFIX/etc/ld.so.conf >> $PKG_PREFIX/etc/ld.so.conf.tmp || exit 1
mv -f $PKG_PREFIX/etc/ld.so.conf.tmp $PKG_PREFIX/etc/ld.so.conf || exit 1
fi
$PKG_PREFIX/sbin/ldconfig || true