Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Dec 2020 18:39:07 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r559397 - head/comms/uhd
Message-ID:  <202012271839.0BRId7v1058714@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Sun Dec 27 18:39:07 2020
New Revision: 559397
URL: https://svnweb.freebsd.org/changeset/ports/559397

Log:
  comms/uhd: fix build on GCC architectures
  
  /usr/local/bin/ld: lib/libuhd.so.4.0.0: undefined reference to `__atomic_compare_exchange_16'
  /usr/local/bin/ld: lib/libuhd.so.4.0.0: undefined reference to `__atomic_store_16'
  /usr/local/bin/ld: lib/libuhd.so.4.0.0: undefined reference to `__atomic_load_16'

Modified:
  head/comms/uhd/Makefile

Modified: head/comms/uhd/Makefile
==============================================================================
--- head/comms/uhd/Makefile	Sun Dec 27 18:38:39 2020	(r559396)
+++ head/comms/uhd/Makefile	Sun Dec 27 18:39:07 2020	(r559397)
@@ -45,6 +45,9 @@ CMAKE_SOURCE_PATH=	${WRKSRC}/host
 #CXXFLAGS_amd64=	-msse2 -std=c++11
 CXXFLAGS_i386=	-msse2
 
+LDFLAGS+=	${LDFLAGS_${CHOSEN_COMPILER_TYPE}}
+LDFLAGS_gcc=	-latomic
+
 SHEBANG_GLOB=	*.py *.py.in
 
 CMAKE_ARGS+=	-DPKG_LIB_DIR:STRING="share/uhd" -DUHD_TXRX_DEBUG_PRINTS="yes"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202012271839.0BRId7v1058714>