On 11/03/2015 02:58 PM, Reindl Harald wrote:
Am 03.11.2015 um 14:44 schrieb Florian Weimer:
> On 11/03/2015 02:35 PM, Reindl Harald wrote:
>> how is "configure: error: POSIX thread library is required" possible
>> when things like MariaDB and even libevent are building fine?
>
> What does config.log contain around the failing test?
xz compressed config.log attached since i am not sure what's the really
interesting part for you
The root cause is this snippet in configure.ac:
AC_ARG_ENABLE(optimized,
AS_HELP_STRING([--enable-optimized],
[Build software optimized]),
[
if test "x$enableval" = "xyes" ; then
CFLAGS=`echo $CFLAGS|sed 's/-O.//'`
CFLAGS=`echo $CFLAGS|sed 's/-g//'`
CFLAGS="$CFLAGS -O3"
OPTIMIZED=1
else
OPTIMIZED=0
fi
],
[
OPTIMIZED=0
]
)
It turns "-g0" into "0", causing all future compiler invocations to
fail. You should just remove it and rely on RPM_OPT_FLAGS.
Florian