Summary: | Mk/Uses/cmake.mk: THREADS_HAVE_PTHREAD_ARG issue | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Bernard Spil <brnrd> |
Component: | Ports Framework | Assignee: | freebsd-kde (group) <kde> |
Status: | Closed Works As Intended | ||
Severity: | Affects Some People | CC: | kde, portmgr, ports-bugs |
Priority: | --- | Flags: | rakuco:
maintainer-feedback+
koobs: merge-quarterly- |
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any | ||
URL: | https://mariadb.atlassian.net/browse/MDEV-9388 |
Description
Bernard Spil
![]() ![]() Hi, If I recall correctly, we're consciously setting this variable because we do want -pthread instead of -lpthread: the former implies the latter and also passes a few other options to the compiler that may be necessary to get proper pthreads support (on other platforms it sets _REENTRANT, for example, though I'm not sure if that's needed on FreeBSD). MariaDB should probably be just able to accept arguments that don't start with "-l". (In reply to Raphael Kubo da Costa from comment #1) I had expected that this was there for a good reason. MariaDB does not have an issue at compile time. It generates a script mysql_config that other software packages can use to determine build-flags. I'll make sure to patch the script file post-stage to fix this. (In reply to Bernard Spil from comment #2) > I'll make sure to patch the script file post-stage to fix this. That works too, but what I meant was: the upstream code that generates the values for mysql_config.sh (https://github.com/MariaDB/server/blob/10.1/cmake/for_clients.cmake if I understood it correctly) should probably be fixed so that it does not barf at arguments like -pthread. MFH is not necessary due to resolution |