summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/gcc/cp/g++.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/gcc/cp/g++.c b/contrib/gcc/cp/g++.c
index efb6231a20d1..96ce010e9657 100644
--- a/contrib/gcc/cp/g++.c
+++ b/contrib/gcc/cp/g++.c
@@ -542,8 +542,11 @@ main (argc, argv)
/* Add `-lg++' if we haven't already done so. */
if (library == 2)
arglist[j++] = "-lg++";
+#ifndef __FreeBSD__
+ /* Temporary only */
if (library)
arglist[j++] = "-lstdc++";
+#endif
if (saw_math)
arglist[j++] = saw_math;
else if (library)