aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2008-08-07 17:56:55 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2008-08-07 17:56:55 +0800
commit2dcf746139c64b870143180013510657b94c145a (patch)
treeb16b52edce490382d1e5ee22e46809c133a6b912 /lang
parent69e26047d968725a606e2a95756fc13aca07c194 (diff)
downloadfreebsd-ports-gnome-2dcf746139c64b870143180013510657b94c145a.tar.gz
freebsd-ports-gnome-2dcf746139c64b870143180013510657b94c145a.tar.zst
freebsd-ports-gnome-2dcf746139c64b870143180013510657b94c145a.zip
- Add patch to fix exceptions on FreeBSD (throwing exception from D will no longer lead straight to abort())
Obtained from: http://d.puremagic.com/issues/show_bug.cgi?id=2182 Thanks to: David Friedman Approved by: miwi (mentor implicit)
Diffstat (limited to 'lang')
-rw-r--r--lang/gdc/Makefile5
-rw-r--r--lang/gdc/files/patch-gcc-config-freebsd-spec.h10
2 files changed, 12 insertions, 3 deletions
diff --git a/lang/gdc/Makefile b/lang/gdc/Makefile
index 1bef6ab7b287..c626efb9ee5e 100644
--- a/lang/gdc/Makefile
+++ b/lang/gdc/Makefile
@@ -7,7 +7,7 @@
PORTNAME= gdc
PORTVERSION= 0.24
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_GCC} \
${MASTER_SITE_SOURCEFORGE:S/%SUBDIR%/dgcc/g:S/$/:gdc/g}
@@ -35,9 +35,8 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--disable-nls \
--with-system-zlib \
--with-libiconv-prefix=${LOCALBASE} \
- --disable-shared \
--enable-languages=c,c++,d \
- --enable-thread-lib=-lpthread
+ --enable-thread-lib=-pthread
CONFIGURE_SCRIPT= ../${SRCDIR:C/${WRKDIR}\///}/configure
PLIST_SUB= GCC_VER=${GCC_VERSION} CONF_TARGET=${CONFIGURE_TARGET}
diff --git a/lang/gdc/files/patch-gcc-config-freebsd-spec.h b/lang/gdc/files/patch-gcc-config-freebsd-spec.h
new file mode 100644
index 000000000000..38665efdadf2
--- /dev/null
+++ b/lang/gdc/files/patch-gcc-config-freebsd-spec.h
@@ -0,0 +1,10 @@
+--- gcc/config/freebsd-spec.h.orig 2007-11-04 23:09:45.000000000 +0300
++++ gcc/config/freebsd-spec.h 2008-08-07 05:10:48.000000000 +0400
+@@ -164,3 +164,7 @@
+ #else
+ #define FBSD_DYNAMIC_LINKER "/libexec/ld-elf.so.1"
+ #endif
++
++#if defined(HAVE_LD_EH_FRAME_HDR)
++#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
++#endif