Hi, Running gnulib tests on MinGW (current Debian unstable) fail:
/usr/bin/x86_64-w64-mingw32-ld:
libtests.a(localename.o):localename.c:(.text+0x10): undefined reference
to `pthread_mutex_lock'
/usr/bin/x86_64-w64-mingw32-ld:
libtests.a(localename.o):localename.c:(.text+0x83): undefined reference
to `pthread_mutex_unlock'
/usr/bin/x86_64-w64-mingw32-ld:
libtests.a(localename.o):localename.c:(.text+0xa8): undefined reference
to `pthread_mutex_unlock'
collect2: error: ld returned 1 exit status
This is with latest master (eb8278fefa0bbf2a53b706bffb2c99ccfe5d7bd4).
From gl/Makefile.am:
# Generated by gnulib-tool.
# Reproduce by:
# gnulib-tool --import --local-dir=gl/override \
# --lib=libgnu \
# --source-base=gl \
# --m4-base=m4 \
# --doc-base=doc \
# --tests-base=gl/tests \
# --aux-dir=build-aux \
# --with-tests \
# --no-conditional-dependencies \
# --libtool \
# --macro-prefix=gl \
# --avoid=alignof-tests \
# --avoid=lock-tests \
# --avoid=lseek-tests \
# alloca \
# arpa_inet \
# byteswap \
# c-ctype \
# c-strcase \
# extensions \
# func \
# gendocs \
# getline \
# gettext-h \
# gettimeofday \
# hash-pjw-bare \
# havelib \
# inet_ntop \
# inet_pton \
# intprops \
# lib-msvc-compat \
# lib-symbol-versions \
# maintainer-makefile \
# manywarnings \
# memmem-simple \
# minmax \
# netdb \
# netinet_in \
# pmccabe2html \
# read-file \
# secure_getenv \
# setsockopt \
# snprintf \
# stdint \
# strcase \
# strdup-posix \
# strndup \
# strtok_r \
# strverscmp \
# sys_socket \
# sys_stat \
# sys_types \
# time_r \
# unistd \
# valgrind-tests \
# vasprintf \
# vsnprintf \
# warnings
My environment, if of any interest:
PREFIX=x86_64-w64-mingw32
export PATH="/usr/$PREFIX/bin:$PATH"
export INSTALLDIR="$PWD/$PREFIX"
export PKG_CONFIG_PATH=$INSTALLDIR/lib/pkgconfig:/usr/$PREFIX/lib/pkgconfig
export PKG_CONFIG_LIBDIR="$INSTALLDIR/lib/pkgconfig"
export PKG_CONFIG="/usr/bin/${PREFIX}-pkg-config"
export CPPFLAGS="-I$INSTALLDIR/include"
export LDFLAGS="-L$INSTALLDIR/lib"
export CFLAGS="-O2 -Wall -Wno-format"
Any help is thankfully appreciated,
Tim
signature.asc
Description: OpenPGP digital signature
