aboutsummaryrefslogtreecommitdiffstats
path: root/lang/gdc
diff options
context:
space:
mode:
authordaichi <daichi@FreeBSD.org>2007-10-22 16:29:51 +0800
committerdaichi <daichi@FreeBSD.org>2007-10-22 16:29:51 +0800
commit1e01c5c97bc876f243232ae195feb86f9304e22d (patch)
treeda4bbb92722953c4eeb91f1dd48f625666951ffa /lang/gdc
parentedbe559cf9d9bca334c5b43286273aeb75546339 (diff)
downloadfreebsd-ports-gnome-1e01c5c97bc876f243232ae195feb86f9304e22d.tar.gz
freebsd-ports-gnome-1e01c5c97bc876f243232ae195feb86f9304e22d.tar.zst
freebsd-ports-gnome-1e01c5c97bc876f243232ae195feb86f9304e22d.zip
lang/gdc: link error fixed
- GDC gets a fail of link with GCC42(on 8-current/7-PR1) because libstdc++ is not in the default link target where libphobos of GDC needs it. To fix that issue, I have added a patch that make libstdc++ a link tareget of GDC. Sometimes 6-stable says that it is a overplus link but it is no problem. PR: ports/117318 Submitted by: Masanori OZAWA <ozawa@ongs.co.jp> (maintainer)
Diffstat (limited to 'lang/gdc')
-rw-r--r--lang/gdc/Makefile2
-rw-r--r--lang/gdc/files/patch-gcc_d_d-spec.c31
2 files changed, 32 insertions, 1 deletions
diff --git a/lang/gdc/Makefile b/lang/gdc/Makefile
index 6e68a877ed60..9cb974f28487 100644
--- a/lang/gdc/Makefile
+++ b/lang/gdc/Makefile
@@ -7,7 +7,7 @@
PORTNAME= gdc
PORTVERSION= 0.24
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_GCC} \
${MASTER_SITE_SOURCEFORGE:S/%SUBDIR%/dgcc/g:S/$/:gdc/g}
diff --git a/lang/gdc/files/patch-gcc_d_d-spec.c b/lang/gdc/files/patch-gcc_d_d-spec.c
new file mode 100644
index 000000000000..7dbf489b5119
--- /dev/null
+++ b/lang/gdc/files/patch-gcc_d_d-spec.c
@@ -0,0 +1,31 @@
+--- gcc/d/d-spec.c.orig 2007-10-16 20:24:22.000000000 +0900
++++ gcc/d/d-spec.c 2007-10-16 20:29:07.000000000 +0900
+@@ -46,6 +46,10 @@
+ #define MATH_LIBRARY_PROFILE "-lm"
+ #endif
+
++#ifndef LIBSTDCXX
++#define LIBSTDCXX "-lstdc++"
++#endif
++
+ #ifndef LIBPHOBOS
+ #define LIBPHOBOS "-lgphobos"
+ #endif
+@@ -295,7 +299,7 @@
+ /* There is one extra argument added here for the runtime
+ library: -lgphobos. The -pthread argument is added by
+ setting need_pthreads. */
+- num_args = argc + added + need_math + shared_libgcc + (library > 0 ? 1 : 0) + 1;
++ num_args = argc + added + need_math + shared_libgcc + (library > 0 ? 2 : 0) + 1;
+ arglist = xmalloc (num_args * sizeof (char *));
+
+ i = 0;
+@@ -353,6 +357,8 @@
+ /* Add `-lstdc++' if we haven't already done so. */
+ if (library > 0)
+ {
++ arglist[j++] = LIBSTDCXX;
++ added_libraries++;
+ arglist[j++] = saw_profile_flag ? LIBPHOBOS_PROFILE : LIBPHOBOS;
+ added_libraries++;
+ need_pthreads = 1;