summaryrefslogtreecommitdiff
blob: 5d10b65c60f9888488a659b6a4be6ce338e8afc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
https://bugs.gentoo.org/679642
https://github.com/ivmai/bdwgc/issues/268

--- a/src/configure
+++ b/src/configure
@@ -4046,7 +4046,7 @@ if test "$ac_cv_enable_gc" == "yes"; then
   GC_BRIDGE=$srcdir/Synopsis/PTree/GC-enabled.tmpl
   if test -n "$ac_cv_with_gc_prefix"; then
     CPPFLAGS="$CPPFLAGS -I$ac_cv_with_gc_prefix/include/gc"
-    LIBS="-L$ac_cv_with_gc_prefix/lib -lgc $LIBS"
+    LIBS="-L$ac_cv_with_gc_prefix/lib -lgc  -lgccpp $LIBS"
   else
     GC_CPP="-I\${includedir}/Synopsis/gc/include"
     GC_LIB="Synopsis/gc/.libs/libgc.a"
--- a/src/configure.ac
+++ b/src/configure.ac
@@ -72,7 +72,7 @@ if test "$ac_cv_enable_gc" == "yes"; then
   GC_BRIDGE=$srcdir/Synopsis/PTree/GC-enabled.tmpl
   if test -n "$ac_cv_with_gc_prefix"; then
     CPPFLAGS="$CPPFLAGS -I$ac_cv_with_gc_prefix/include/gc"
-    LIBS="-L$ac_cv_with_gc_prefix/lib -lgc $LIBS"
+    LIBS="-L$ac_cv_with_gc_prefix/lib -lgc -lgccpp $LIBS"
   else
     GC_CPP="-I\${includedir}/Synopsis/gc/include"
     GC_LIB="Synopsis/gc/.libs/libgc.a"