Date: Tue, 17 Apr 2018 07:57:01 +0000 (UTC) From: Jan Beich <jbeich@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r467569 - head/sysutils/usbtop/files Message-ID: <201804170757.w3H7v1sT072927@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jbeich Date: Tue Apr 17 07:57:01 2018 New Revision: 467569 URL: https://svnweb.freebsd.org/changeset/ports/467569 Log: sysutils/usbtop: unbreak with boost 1.67 /usr/bin/ld: undefined reference to symbol `pthread_condattr_init@@FBSD_1.0' (try adding -lthr) PR: 227427 Reported by: antoine (via exp-run) Added: head/sysutils/usbtop/files/patch-boost-1.67 (contents, props changed) Added: head/sysutils/usbtop/files/patch-boost-1.67 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/usbtop/files/patch-boost-1.67 Tue Apr 17 07:57:01 2018 (r467569) @@ -0,0 +1,14 @@ +https://github.com/aguinet/usbtop/pull/15 + +--- src/CMakeLists.txt.orig 2017-12-17 21:14:26 UTC ++++ src/CMakeLists.txt +@@ -21,5 +21,9 @@ usb_stats.cpp + + add_executable(usbtop ${SRC_FILES}) + target_link_libraries(usbtop ${PCAP_LIBRARIES} ${Boost_LIBRARIES}) ++if(UNIX AND NOT APPLE) ++ # Boost.Thread 1.67+ headers reference pthread_condattr_* ++ target_link_libraries(usbtop pthread) ++endif() + + install(TARGETS usbtop DESTINATION sbin)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804170757.w3H7v1sT072927>