aboutsummaryrefslogtreecommitdiff
path: root/textproc/html2text
diff options
context:
space:
mode:
authorEitan Adler <eadler@FreeBSD.org>2013-01-26 19:12:05 +0000
committerEitan Adler <eadler@FreeBSD.org>2013-01-26 19:12:05 +0000
commitb9590734ca733e1b86393d66032afa3716ae92c4 (patch)
tree1586cd604cbbbb846e07a96013b807433bcb2164 /textproc/html2text
parent383334ede160c86b67a617000f453e2bd0df2957 (diff)
downloadports-b9590734ca733e1b86393d66032afa3716ae92c4.tar.gz
ports-b9590734ca733e1b86393d66032afa3716ae92c4.zip
Notes
Diffstat (limited to 'textproc/html2text')
-rw-r--r--textproc/html2text/files/patch-configure22
1 files changed, 22 insertions, 0 deletions
diff --git a/textproc/html2text/files/patch-configure b/textproc/html2text/files/patch-configure
index f34e0ac05be0..90d4cb2051e3 100644
--- a/textproc/html2text/files/patch-configure
+++ b/textproc/html2text/files/patch-configure
@@ -10,3 +10,25 @@
if $i -c $tmp_file.C 2>/dev/null; then
CXX="$i";
break;
+@@ -205,12 +205,19 @@
+ #include <new>
+ #include <vector>
+ using namespace std;
+-void func() { map<string, string> x; }
++int main(void) {
++ map<string, string> x;
++ return 0;
++}
+ EOF
+-if $CXX -c $tmp_file.C 2>/dev/null; then
++if $CXX $tmp_file.C 2>/dev/null; then
+ LIBSTDCXX_INCLUDES="";
+ LIBSTDCXX_LIBS="";
+ $echo 'works; no need to make "./libstd"';
++elif $CXX $tmp_file.C -lstdc++ 2>/dev/null; then
++ LIBSTDCXX_INCLUDES="";
++ LIBSTDCXX_LIBS="-lstdc++";
++ $echo 'works with libstdc++; no need to make "./libstd"';
+ else
+ LIBSTDCXX_INCLUDES='-Ilibstd/include';
+ LIBSTDCXX_LIBS='libstd/libstd.a';