aboutsummaryrefslogtreecommitdiffstats
path: root/lang/gcc33
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2006-03-26 02:30:26 +0800
committerdinoex <dinoex@FreeBSD.org>2006-03-26 02:30:26 +0800
commitb3aa8332223556f7160aa522530f24f8757bf8fe (patch)
tree4e69339ac7af870082ccdb5714733825a734ce1c /lang/gcc33
parent292b45b0925f3f6e3728a16270a36efb0e56077b (diff)
downloadfreebsd-ports-gnome-b3aa8332223556f7160aa522530f24f8757bf8fe.tar.gz
freebsd-ports-gnome-b3aa8332223556f7160aa522530f24f8757bf8fe.tar.zst
freebsd-ports-gnome-b3aa8332223556f7160aa522530f24f8757bf8fe.zip
- add RC_D_SH to keep shared libs working after reboot
Approved by: gerald
Diffstat (limited to 'lang/gcc33')
-rw-r--r--lang/gcc33/Makefile7
-rw-r--r--lang/gcc33/files/gcc.sh.in14
2 files changed, 21 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