openbsd-ports/www/firefox35/patches/patch-js_src_configure_in
martynas 4578e9080a do not even try to let configure.in pick up nanojit on sparc64.
sparc* also matches sparc64;  however, native asm code is missing
for jit on sparc64, and jit is not ready for 64-bit in general (yet).
should fix sparc64.  reported by matthieu@.
2009-07-21 19:53:17 +00:00

40 lines
1.1 KiB
Plaintext

$OpenBSD: patch-js_src_configure_in,v 1.4 2009/07/21 19:53:17 martynas Exp $
--- js/src/configure.in.orig Wed Jul 15 18:34:51 2009
+++ js/src/configure.in Tue Jul 21 22:47:41 2009
@@ -906,7 +906,7 @@ HOST_AR='$(AR)'
HOST_AR_FLAGS='$(AR_FLAGS)'
MOZ_JS_LIBS='-L$(libdir) -lmozjs'
-MOZ_FIX_LINK_PATHS='-Wl,-rpath-link,$(LIBXUL_DIST)/bin -Wl,-rpath-link,$(PREFIX)/lib'
+MOZ_FIX_LINK_PATHS='-Wl,-rpath-link,$(LIBXUL_DIST)/bin -Wl,-rpath-link,$(PREFIX)/lib -L$(LIBXUL_DIST)/bin'
MOZ_COMPONENT_NSPR_LIBS='-L$(LIBXUL_DIST)/bin $(NSPR_LIBS)'
MOZ_XPCOM_OBSOLETE_LIBS='-L$(LIBXUL_DIST)/lib -lxpcom_compat'
@@ -2135,7 +2135,7 @@ case "$target" in
;;
*-openbsd*)
- DLL_SUFFIX=".so.1.0"
+ DLL_SUFFIX=".so.${SO_VERSION}"
DSO_CFLAGS=''
DSO_PIC_CFLAGS='-fPIC'
DSO_LDOPTS='-shared -fPIC'
@@ -2467,7 +2467,7 @@ arm*-*)
ENABLE_JIT=1
NANOJIT_ARCH=ARM
;;
-sparc*-*)
+sparc-*)
ENABLE_JIT=1
NANOJIT_ARCH=Sparc
;;
@@ -2504,7 +2504,7 @@ darwin*)
solaris*)
AC_DEFINE(AVMPLUS_UNIX)
;;
-freebsd*|kfreebsd*)
+freebsd*|kfreebsd*|openbsd*)
AC_DEFINE(AVMPLUS_UNIX)
;;
*cygwin*|*mingw*|*mks*|*msvc*|*wince)