mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
941115a00f
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/
12 lines
363 B
Bash
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
|