diff options
author | mbr <mbr@FreeBSD.org> | 2003-03-26 23:27:15 +0000 |
---|---|---|
committer | mbr <mbr@FreeBSD.org> | 2003-03-26 23:27:15 +0000 |
commit | 90ea019e0c9512d2974509e169cacdedca20fd0b (patch) | |
tree | 98506ee09b277bd8241bf5d86ab8063a61e7d231 /databases/mysql55-server | |
parent | 4fc8e56042eec3f5768f955791ec9af5ad001fa1 (diff) | |
download | FreeBSD-ports-90ea019e0c9512d2974509e169cacdedca20fd0b.zip FreeBSD-ports-90ea019e0c9512d2974509e169cacdedca20fd0b.tar.gz |
Under FreeBSD 5.X, libstdc++ and libsupc++ in /usr/lib use FreeBSD
native (libc_r style) mutexes, thus some of the linked application
might indirectly try to pass native style mutexes to linuxthreads
pthread functions, either hanging at program startup or overwriting
data following the native style mutex. <tegge>
Reviewed by: tegge
Diffstat (limited to 'databases/mysql55-server')
-rw-r--r-- | databases/mysql55-server/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/databases/mysql55-server/Makefile b/databases/mysql55-server/Makefile index 0a519bc..7f4a067 100644 --- a/databases/mysql55-server/Makefile +++ b/databases/mysql55-server/Makefile @@ -71,13 +71,14 @@ CFLAGS+= -mcpu=i686 .if defined(WITH_LINUXTHREADS) CONFIGURE_ARGS+=--with-named-thread-libs='-DHAVE_GLIBC2_STYLE_GETHOSTBYNAME_R CONFIGURE_ARGS+=-D_THREAD_SAFE -I${LOCALBASE}/include/pthread/linuxthreads -CONFIGURE_ARGS+=-L${LOCALBASE}/lib -llthread -llgcc_r' CFLAGS+= -D__USE_UNIX98 -D_REENTRANT -D_THREAD_SAFE CFLAGS+= -I${LOCALBASE}/include/pthread/linuxthreads .if ${OSVERSION} > 500000 LIB_DEPENDS+= lthread.3:${PORTSDIR}/devel/linuxthreads +CONFIGURE_ARGS+=-L${LOCALBASE}/lib -llthread -llgcc_r -llstdc++ -llsupc++' .else LIB_DEPENDS+= lthread.2:${PORTSDIR}/devel/linuxthreads +CONFIGURE_ARGS+=-L${LOCALBASE}/lib -llthread -llgcc_r' .endif .endif |