aboutsummaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorMichael Nottebrock <lofi@FreeBSD.org>2004-11-07 18:20:57 +0000
committerMichael Nottebrock <lofi@FreeBSD.org>2004-11-07 18:20:57 +0000
commit7a1c4f0d45fbaa85601d2477479ad54a65f80ad8 (patch)
tree37d98fca7a1e4515e754dbb18ee98005a17f5c49 /lang
parent373b2bbb8b905603547002baa1c3342bdbed008e (diff)
downloadports-7a1c4f0d45fbaa85601d2477479ad54a65f80ad8.tar.gz
ports-7a1c4f0d45fbaa85601d2477479ad54a65f80ad8.zip
Notes
Diffstat (limited to 'lang')
-rw-r--r--lang/gcc32/Makefile6
-rw-r--r--lang/gcc32/files/extrapatch-gcc__config__freebsd-spec.h13
-rw-r--r--lang/gcc32/files/extrapatch-libjava__configure16
3 files changed, 34 insertions, 1 deletions
diff --git a/lang/gcc32/Makefile b/lang/gcc32/Makefile
index 50865704f411..f5d61f74d3b5 100644
--- a/lang/gcc32/Makefile
+++ b/lang/gcc32/Makefile
@@ -8,7 +8,7 @@
PORTNAME= gcc
PORTVERSION= 3.2.3
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= lang java
MASTER_SITES= ${MASTER_SITE_GCC} \
http://web.inter.NL.net/hcc/Haj.Ten.Brugge/:bc
@@ -35,6 +35,10 @@ NOMANCOMPRESS= yes # too hard to deal with differences on 5-cur and releng4
.include <bsd.port.pre.mk>
+.if ${OSVERSION} > 502101
+EXTRA_PATCHES= ${FILESDIR}/extrapatch-gcc__config__freebsd-spec.h \
+ ${FILESDIR}/extrapatch-libjava__configure
+.endif
.if ${ARCH} == "sparc64" || ${ARCH} == "ia64" || ${ARCH} == "amd64"
# libgcj is built on all platforms except sparc64 and ia64 and amd64
diff --git a/lang/gcc32/files/extrapatch-gcc__config__freebsd-spec.h b/lang/gcc32/files/extrapatch-gcc__config__freebsd-spec.h
new file mode 100644
index 000000000000..0bfd886088c8
--- /dev/null
+++ b/lang/gcc32/files/extrapatch-gcc__config__freebsd-spec.h
@@ -0,0 +1,13 @@
+--- gcc/config/freebsd-spec.h.orig Sat Nov 6 23:39:36 2004
++++ gcc/config/freebsd-spec.h Sat Nov 6 23:39:59 2004
+@@ -132,8 +132,8 @@
+ #if FBSD_MAJOR >= 5
+ #define FBSD_LIB_SPEC " \
+ %{!shared: \
+- %{!pg: %{pthread:-lc_r} -lc} \
+- %{pg: %{pthread:-lc_r_p} -lc_p} \
++ %{!pg: %{pthread:-lpthread} -lc} \
++ %{pg: %{pthread:-lpthread_p} -lc_p} \
+ }"
+ #else
+ #define FBSD_LIB_SPEC " \
diff --git a/lang/gcc32/files/extrapatch-libjava__configure b/lang/gcc32/files/extrapatch-libjava__configure
new file mode 100644
index 000000000000..d4f8f909e7bc
--- /dev/null
+++ b/lang/gcc32/files/extrapatch-libjava__configure
@@ -0,0 +1,16 @@
+--- libjava/configure.orig Sun Nov 7 17:50:53 2004
++++ libjava/configure Sun Nov 7 17:51:38 2004
+@@ -3221,13 +3221,6 @@
+ # support for weak references to pthread_* functions ala gthr.h API.
+ THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
+ ;;
+- *-*-freebsd*)
+- # FreeBSD 5 implements a model much closer to other modern UNIX
+- # which support threads. However, it still does not support
+- # -lpthread.
+- THREADLDFLAGS=-pthread
+- THREADSPEC=-lc_r
+- ;;
+ *)
+ THREADLIBS=-lpthread
+ THREADSPEC=-lpthread