openbsd-ports/www/mozilla/patches/patch-configure_in
2004-02-15 19:44:01 +00:00

34 lines
1.1 KiB
Plaintext

$OpenBSD: patch-configure_in,v 1.8 2004/02/15 19:44:01 wilfried Exp $
--- configure.in.orig 2003-12-03 00:19:34.000000000 +0100
+++ configure.in 2003-12-12 15:43:28.000000000 +0100
@@ -1286,12 +1286,11 @@ case "$target" in
DLL_SUFFIX=".so.1.0"
DSO_CFLAGS=''
DSO_PIC_CFLAGS='-fPIC'
- DSO_LDOPTS='-shared -h $@'
- MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
- MKCSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
- if $CC -E - -dM </dev/null | grep -v __ELF__ >/dev/null; then
- DSO_LDOPTS="-Bshareable /usr/lib/c++rt0.o"
- fi
+ DSO_LDOPTS='-shared -fPIC'
+ MKSHLIB='$(CXX) $(DSO_LDOPTS) -o $@'
+ MKCSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
+ MKSHLIB_FORCE_ALL=''
+ MKSHLIB_UNFORCE_ALL=''
if test "$LIBRUNPATH"; then
DSO_LDOPTS="-R$LIBRUNPATH $DSO_LDOPTS"
fi
@@ -2159,9 +2158,8 @@ then
AC_DEFINE(_THREAD_SAFE)
dnl -pthread links in -lc_r, so don't specify it explicitly.
if test "$ac_cv_have_dash_pthread" = "yes"; then
- _PTHREAD_LDFLAGS=""
- else
- _PTHREAD_LDFLAGS="-lc_r"
+ _PTHREAD_LDFLAGS="-pthread"
+ LDFLAGS="${_PTHREAD_LDFLAGS} ${LDFLAGS}"
fi
;;