diff options
author | joerg <joerg> | 2006-01-11 23:19:56 +0000 |
---|---|---|
committer | joerg <joerg> | 2006-01-11 23:19:56 +0000 |
commit | 5a868cacd93126e52ac6780fb34c883e3e2aee16 (patch) | |
tree | 7006d685250ba024834cff4db9e7c2e577f079fb /lang/sablevm/patches | |
parent | bd2265657b1415da828f3bd764304a8474327f18 (diff) | |
download | pkgsrc-5a868cacd93126e52ac6780fb34c883e3e2aee16.tar.gz |
Use PTHREAD_* instead of hard-wired -lpthread or -lrt. Expects GNU m4.
Diffstat (limited to 'lang/sablevm/patches')
-rw-r--r-- | lang/sablevm/patches/patch-aa | 21 | ||||
-rw-r--r-- | lang/sablevm/patches/patch-ab | 13 |
2 files changed, 34 insertions, 0 deletions
diff --git a/lang/sablevm/patches/patch-aa b/lang/sablevm/patches/patch-aa new file mode 100644 index 00000000000..3ee08b74ad0 --- /dev/null +++ b/lang/sablevm/patches/patch-aa @@ -0,0 +1,21 @@ +$NetBSD: patch-aa,v 1.3 2006/01/11 23:19:56 joerg Exp $ + +--- configure.orig 2006-01-11 22:37:08.000000000 +0000 ++++ configure +@@ -19678,13 +19678,13 @@ else + echo ***ERROR: libpopt is missing; exit 1 + fi + +-echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5 +-echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6 ++echo "$as_me:$LINENO: checking for pthread_self in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}" >&5 ++echo $ECHO_N "checking for pthread_self in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}... $ECHO_C" >&6 + if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 + else + ac_check_lib_save_LIBS=$LIBS +-LIBS="-lpthread $LIBS" ++LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} $LIBS" + cat >conftest.$ac_ext <<_ACEOF + /* confdefs.h. */ + _ACEOF diff --git a/lang/sablevm/patches/patch-ab b/lang/sablevm/patches/patch-ab new file mode 100644 index 00000000000..aacaa5620c0 --- /dev/null +++ b/lang/sablevm/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.3 2006/01/11 23:19:56 joerg Exp $ + +--- src/libsablevm/Makefile.in.orig 2006-01-11 23:05:18.000000000 +0000 ++++ src/libsablevm/Makefile.in +@@ -341,7 +341,7 @@ noinst_HEADERS = \ + util.m4.c \ + vm_args.m4.c + +-libsablevm_la_LIBADD = -lpthread -lm -lffi -lltdl -lrt ++libsablevm_la_LIBADD = -lm -lffi -lltdl ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} + libsablevm_la_LDFLAGS = -release @LIBRELEASE@ + INCLUDES = \ + -I$(srcdir)/include -I$(srcdir)/inlinability \ |