aboutsummaryrefslogtreecommitdiff
path: root/lang/gcc32
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2006-03-20 14:16:18 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2006-03-20 14:16:18 +0000
commit79eedfb880a203b7368ae418ec91e7df25613424 (patch)
treeba881efd9342f9781c263592d33b90b0357bce26 /lang/gcc32
parenta3a9981207b241a9fa325df2997937f5cdbfacfc (diff)
downloadports-79eedfb880a203b7368ae418ec91e7df25613424.tar.gz
ports-79eedfb880a203b7368ae418ec91e7df25613424.zip
Notes
Diffstat (limited to 'lang/gcc32')
-rw-r--r--lang/gcc32/Makefile7
-rw-r--r--lang/gcc32/files/gcc.sh.in14
2 files changed, 21 insertions, 0 deletions
diff --git a/lang/gcc32/Makefile b/lang/gcc32/Makefile
index 40b22f5211c6..ac505e3cc476 100644
--- a/lang/gcc32/Makefile
+++ b/lang/gcc32/Makefile
@@ -68,6 +68,10 @@ CONFIGURE_ARGS+= --enable-shared
INSTALLS_SHLIB= yes
LDCONFIG_DIRS= %%PREFIX%%/lib ${TARGLIB}
EXTRA_SHLIB= libgcc_s
+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
@@ -91,6 +95,9 @@ pre-configure:
pre-install:
${MKDIR} ${PREFIX}/info
+.if defined(WANT_SHAREDLIBS)
+ ${INSTALL_SCRIPT} ${WRKDIR}/gcc.sh ${PREFIX}/${RC_D_SH}
+.endif
post-install:
@${RM} -f ${PREFIX}/bin/c++ ${PREFIX}/bin/${CONFIGURE_TARGET}-c++
diff --git a/lang/gcc32/files/gcc.sh.in b/lang/gcc32/files/gcc.sh.in
new file mode 100644
index 000000000000..987e9531e371
--- /dev/null
+++ b/lang/gcc32/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