NetBSD compile error

* xmlrpc lib build
    - The original sed script eats space chars around '-lpthread',
      causing g++ (4.7): unrecognized option '-pthread-lrt'.
pull/1/head
Makoto Fujiwara 2012-12-26 06:34:38 -06:00 zatwierdzone przez David Freese
rodzic b02da36638
commit 0322dc970a
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -12,7 +12,11 @@ AC_DEFUN([AC_FLDIGI_XMLRPC_CONFIG], [
test "x$XMLRPC_CFLAGS" = "x" && XMLRPC_CFLAGS=`$XMLRPC_C_CONFIG c++2 abyss-server --cflags`
if test "x$XMLRPC_LIBS" = "x"; then
XMLRPC_LIBS=`$XMLRPC_C_CONFIG c++2 abyss-server --ldadd | sed s/.-lpthread.//`
XMLRPC_LIBS=`$XMLRPC_C_CONFIG c++2 abyss-server --ldadd | \
sed -e 's/^-lpthread$//' \
-e 's/^-lpthread / /' \
-e 's/ -lpthread$//' \
-e 's/ -lpthread / /' `
test "$ac_cv_static" = "yes" && XMLRPC_LIBS="-Wl,-Bstatic $XMLRPC_LIBS -Wl,-Bdynamic"
fi
fi