From 5fb00e13938dc9a37f92b701747fc00b22a9e163 Mon Sep 17 00:00:00 2001 From: dinoex Date: Sun, 26 Mar 2006 05:16:44 +0000 Subject: - add RC_D_SH to keep shared libs working after reboot --- lang/gcc41/Makefile | 4 ++++ lang/gcc41/files/gcc.sh.in | 14 ++++++++++++++ lang/gcc41/pkg-plist | 1 + 3 files changed, 19 insertions(+) create mode 100644 lang/gcc41/files/gcc.sh.in (limited to 'lang/gcc41') diff --git a/lang/gcc41/Makefile b/lang/gcc41/Makefile index 1ec3edfd8487..7159e1454da5 100644 --- a/lang/gcc41/Makefile +++ b/lang/gcc41/Makefile @@ -76,6 +76,9 @@ MAKE_ARGS+= MAKEINFOFLAGS="--no-split" ALL_TARGET= bootstrap-lean INSTALLS_SHLIB= yes LDCONFIG_DIRS= ${TARGLIB} +SUB_LIST= TARGLIB="${TARGLIB}" +SUB_FILES= gcc.sh +RC_D_SH= etc/rc.d/gcc${SUFFIX}.sh PLIST_SUB= GCC_VER=${PORTVERSION} GNU_HOST=${CONFIGURE_TARGET} \ SUFFIX=${SUFFIX} MAN1= cpp${SUFFIX}.1 \ @@ -146,6 +149,7 @@ check: build cd ${WRKSRC}; export RUNTESTFLAGS='--target_board ''unix{-pthread}'''; ${GMAKE} -sk check post-install: + ${INSTALL_SCRIPT} ${WRKDIR}/gcc.sh ${PREFIX}/${RC_D_SH} # man pages can only be generated if Perl >= 5.6 is installed; # fake them otherwise. for mp in ${_MANPAGES}; do \ diff --git a/lang/gcc41/files/gcc.sh.in b/lang/gcc41/files/gcc.sh.in new file mode 100644 index 000000000000..987e9531e371 --- /dev/null +++ b/lang/gcc41/files/gcc.sh.in @@ -0,0 +1,14 @@ +#!/bin/sh + +case "$1" in +start) + ldconfig -m %%TARGLIB%% + ;; +stop) + ;; +*) + echo "Usage: ${0##*/} { start | stop }" >&2 + exit 64 + ;; +esac +exit 0 diff --git a/lang/gcc41/pkg-plist b/lang/gcc41/pkg-plist index 5fdc2d7941d0..867fee686215 100644 --- a/lang/gcc41/pkg-plist +++ b/lang/gcc41/pkg-plist @@ -9,6 +9,7 @@ bin/%%GNU_HOST%%-c++%%SUFFIX%% bin/%%GNU_HOST%%-g++%%SUFFIX%% bin/%%GNU_HOST%%-gcc-%%GCC_VER%% bin/%%GNU_HOST%%-gcc%%SUFFIX%% +etc/rc.d/gcc%%SUFFIX%%.sh info/gcc%%SUFFIX%%/dir %%FORTRAN%%bin/gfortran%%SUFFIX%% %%FORTRAN%%bin/%%GNU_HOST%%-gfortran%%SUFFIX%% -- cgit