diff options
-rw-r--r-- | lang/gcc33/Makefile | 7 | ||||
-rw-r--r-- | lang/gcc33/files/gcc.sh.in | 14 | ||||
-rw-r--r-- | lang/gcc34/Makefile | 7 | ||||
-rw-r--r-- | lang/gcc34/files/gcc.sh.in | 14 |
4 files changed, 42 insertions, 0 deletions
diff --git a/lang/gcc33/Makefile b/lang/gcc33/Makefile index 197f154e0f7b..21ed6a36c14a 100644 --- a/lang/gcc33/Makefile +++ b/lang/gcc33/Makefile @@ -59,6 +59,10 @@ MAKE_ARGS+= MAKEINFOFLAGS="--no-split" CONFIGURE_ARGS+= --enable-shared INSTALLS_SHLIB= yes LDCONFIG_DIRS= ${TARGLIB} +SUB_LIST= TARGLIB="${TARGLIB}" +SUB_FILES= gcc.sh +RC_D_SH= etc/rc.d/gcc${SUFFIX}.sh +PLIST_FILES+= ${RC_D_SH} .else CONFIGURE_ARGS+= --disable-shared .endif @@ -93,6 +97,9 @@ check: build cd ${WRKSRC}; export RUNTESTFLAGS='--target_board ''unix{-pthread}'''; ${GMAKE} -sk check post-install: +.if defined(WANT_SHAREDLIBS) + ${INSTALL_SCRIPT} ${WRKDIR}/gcc.sh ${PREFIX}/${RC_D_SH} +.endif # man pages can only be generated if Perl >= 5.6 is installed; # fake them otherwise. for mp in ${_MANPAGES}; do \ diff --git a/lang/gcc33/files/gcc.sh.in b/lang/gcc33/files/gcc.sh.in new file mode 100644 index 000000000000..987e9531e371 --- /dev/null +++ b/lang/gcc33/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/gcc34/Makefile b/lang/gcc34/Makefile index b3fd47714263..3cae3bf11103 100644 --- a/lang/gcc34/Makefile +++ b/lang/gcc34/Makefile @@ -62,6 +62,10 @@ MAKE_ARGS+= MAKEINFOFLAGS="--no-split" CONFIGURE_ARGS+= --enable-shared INSTALLS_SHLIB= yes LDCONFIG_DIRS= ${TARGLIB} +SUB_LIST= TARGLIB="${TARGLIB}" +SUB_FILES= gcc.sh +RC_D_SH= etc/rc.d/gcc${SUFFIX}.sh +PLIST_FILES+= ${RC_D_SH} .else CONFIGURE_ARGS+= --disable-shared .if ${OSVERSION} < 500000 && ${ARCH} == alpha @@ -104,6 +108,9 @@ check: build cd ${WRKSRC}; export RUNTESTFLAGS='--target_board ''unix{-pthread}'''; ${GMAKE} -sk check post-install: +.if defined(WANT_SHAREDLIBS) + ${INSTALL_SCRIPT} ${WRKDIR}/gcc.sh ${PREFIX}/${RC_D_SH} +.endif # man pages can only be generated if Perl >= 5.6 is installed; # fake them otherwise. for mp in ${_MANPAGES}; do \ diff --git a/lang/gcc34/files/gcc.sh.in b/lang/gcc34/files/gcc.sh.in new file mode 100644 index 000000000000..987e9531e371 --- /dev/null +++ b/lang/gcc34/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 |