Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Oct 2016 21:47:44 +0000 (UTC)
From:      "Jason E. Hale" <jhale@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r425030 - branches/2016Q4/net-im/qTox
Message-ID:  <201610312147.u9VLliin096824@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhale
Date: Mon Oct 31 21:47:44 2016
New Revision: 425030
URL: https://svnweb.freebsd.org/changeset/ports/425030

Log:
  MFH: r424975
  
  Fix build for 9.x i386
  
  Quarterly branch has a different version, but suffers from the same error, so
  the fix should be backported.
  
  videoframe.o: In function `VideoFrame::VideoFrame(unsigned long long, AVFrame*, QRect, int, bool)':
  videoframe.cpp:(.text+0x19db): undefined reference to `__atomic_fetch_add_8'
  camerasource.o: In function `CameraSource::CameraSource()':
  camerasource.cpp:(.text+0x327): undefined reference to `__atomic_fetch_add_8'
  corevideosource.o: In function `CoreVideoSource::CoreVideoSource()':
  corevideosource.cpp:(.text+0x121): undefined reference to `__atomic_fetch_add_8'
  collect2: error: ld returned 1 exit status
  gmake: *** [Makefile:793: qtox] Error 1
  
  PR:		213841
  Submitted by:	<matthew@reztek.cz>
  Approved by:	<yuri@rawbw.com> (maintainer)
  
  Approved by:	ports-secteam (feld)

Modified:
  branches/2016Q4/net-im/qTox/Makefile
Directory Properties:
  branches/2016Q4/   (props changed)

Modified: branches/2016Q4/net-im/qTox/Makefile
==============================================================================
--- branches/2016Q4/net-im/qTox/Makefile	Mon Oct 31 21:42:43 2016	(r425029)
+++ branches/2016Q4/net-im/qTox/Makefile	Mon Oct 31 21:47:44 2016	(r425030)
@@ -46,6 +46,13 @@ PLIST_FILES=	bin/qtox \
 PLIST_FILES+=	share/icons/hicolor/${SZ}/apps/qtox.png
 .endfor
 
+.include <bsd.port.pre.mk>
+
+.if ${CHOSEN_COMPILER_TYPE} == "gcc" && ${ARCH} == i386 && !${CFLAGS:M-march=*}
+# Needed for __atomic_fetch_add_8
+CFLAGS+=	-march=i586
+.endif
+
 pre-everything::
 	@${ECHO_MSG}
 	@${ECHO_MSG} "Warning: qTox won't build if the option NaCl was selected for Tox!"
@@ -74,4 +81,4 @@ post-install:
 		${STAGEDIR}${PREFIX}/share/icons/hicolor/${SZ}/apps/qtox.png
 .endfor
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>



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