[Bug 206169] Mk/Uses/cmake.mk THREADS_HAVE_PTHREAD_ARG issue
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Jan 12 20:14:41 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206169
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 at FreeBSD.org
Reporter: brnrd at freebsd.org
CC: freebsd-ports-bugs at FreeBSD.org
Mk/Uses/cmake.mk line 82 adds a CMake argument
> -DTHREADS_HAVE_PTHREAD_ARG:BOOL=YES
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=general;-pthread;general;-pthread;general;/usr/lib/libz.so;general;m
CMakeCache.out after removing the line
> mysqlclient_LIB_DEPENDS:STATIC=general;-lpthread;general;-lpthread;general;/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
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the freebsd-ports-bugs
mailing list