mysql_config --libs output contains invalid -l-pthread

Description

After building MariaDB 10.1 the mysql_config script contains -l-pthread in the libs output.

This introduces build-errors for configure scripts that use mysql_config to retrieve build flags.

For now worked around it by applying 's/-l-pthread/-lpthread/' to mysql_config before packaging.

Environment

FreeBSD meterkast.example.org 10.2-RELEASE-p8 FreeBSD 10.2-RELEASE-p8 #2: Sun Dec 13 15:21:37 CET 2015 root@meterkast.brnrd.eu:/usr/obj/usr/src/sys/BEASTIE102 amd64
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512

Assignee

Vladislav Vaintroub

Reporter

Bernard Spil

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure