Date: Tue, 12 Jan 2016 20:14:41 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 206169] Mk/Uses/cmake.mk THREADS_HAVE_PTHREAD_ARG issue Message-ID: <bug-206169-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206169 Bug ID: 206169 Summary: Mk/Uses/cmake.mk THREADS_HAVE_PTHREAD_ARG issue Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Ports Framework Assignee: portmgr@FreeBSD.org Reporter: brnrd@freebsd.org CC: freebsd-ports-bugs@FreeBSD.org Mk/Uses/cmake.mk line 82 adds a CMake argument > -DTHREADS_HAVE_PTHREAD_ARG:BOOL=3DYES This causes cmake to add -pthread to the depends list in stead of -lpthread. If I remove the offending line in cmake.mk I get a proper -lpthread in the CMakeCache.txt This was discovered after the build of MariaDB 10.1 review D3953 that uses = the dependencies to provide a mysql_config command that can be used by ports depending on the libmysqlclient library to set proper build flags (e.g. mail/dovecot2) CMakeCache.out original > //Dependencies for the target > mysqlclient_LIB_DEPENDS:STATIC=3Dgeneral;-pthread;general;-pthread;genera= l;/usr/lib/libz.so;general;m CMakeCache.out after removing the line > mysqlclient_LIB_DEPENDS:STATIC=3Dgeneral;-lpthread;general;-lpthread;gene= ral;/usr/lib/libz.so;general;m mysql_config output > -L/usr/local/lib/mysql -lmysqlclient -l-pthread -lz -lm -lexecinfo -lssl= -lcrypto desired output > -L/usr/local/lib/mysql -lmysqlclient -lpthread -lz -lm -lexecinfo -lssl = -lcrypto --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-206169-13>