mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 812265, Part 4/4 - Fix MOZ_JS_LIBS. r=glandium
This commit is contained in:
parent
2758a2a859
commit
7fa89a1cba
@ -752,6 +752,11 @@ endif
|
||||
# - OS_LIBS includes libraries selected by the configure script.
|
||||
# - EXTRA_LIBS includes libraries selected by this Makefile.
|
||||
JS_CONFIG_LIBS=$(EXTRA_DSO_LDOPTS) $(OS_LIBS) $(EXTRA_LIBS)
|
||||
ifdef GNU_CC
|
||||
JS_CONFIG_MOZ_JS_LIBS=-L$(libdir) -l$(LIBRARY_NAME)
|
||||
else
|
||||
JS_CONFIG_MOZ_JS_LIBS=$(libdir)/$(LIBRARY_NAME).lib
|
||||
endif
|
||||
|
||||
# The configure script invokes this rule explicitly at configure time!
|
||||
# It's important that js-config be ready by the time we're done
|
||||
@ -777,7 +782,7 @@ JS_CONFIG_SUBSTITUTIONS=\
|
||||
-DMOZILLA_VERSION="$(MOZILLA_VERSION)" \
|
||||
-DLIBRARY_NAME="$(LIBRARY_NAME)" \
|
||||
-DJS_CONFIG_LIBS="$(JS_CONFIG_LIBS)" \
|
||||
-DMOZ_JS_LIBS="$(MOZ_JS_LIBS)" \
|
||||
-DJS_CONFIG_MOZ_JS_LIBS="$(JS_CONFIG_MOZ_JS_LIBS)" \
|
||||
-DMOZJS_MAJOR_VERSION="$(MOZJS_MAJOR_VERSION)" \
|
||||
-DMOZJS_MINOR_VERSION="$(MOZJS_MINOR_VERSION)" \
|
||||
-DMOZJS_PATCH_VERSION="$(MOZJS_PATCH_VERSION)" \
|
||||
|
@ -854,7 +854,6 @@ TARGET_MD_ARCH=unix
|
||||
DIRENT_INO=d_ino
|
||||
MOZ_USER_DIR=".mozilla"
|
||||
|
||||
MOZ_JS_LIBS='-L$(libdir) -lmozjs'
|
||||
MOZ_FIX_LINK_PATHS='-Wl,-rpath-link,$(LIBXUL_DIST)/bin -Wl,-rpath-link,$(prefix)/lib'
|
||||
|
||||
MOZ_COMPONENT_NSPR_LIBS='-L$(LIBXUL_DIST)/bin $(NSPR_LIBS)'
|
||||
@ -1677,7 +1676,6 @@ ia64*-hpux*)
|
||||
RCFLAGS='-O coff --use-temp-file'
|
||||
# mingw doesn't require kernel32, user32, and advapi32 explicitly
|
||||
LIBS="$LIBS -lgdi32 -lwinmm -lwsock32 -lpsapi"
|
||||
MOZ_JS_LIBS='-L$(libdir) -lmozjs'
|
||||
MOZ_FIX_LINK_PATHS=
|
||||
DYNAMIC_XPCOM_LIBS='-L$(LIBXUL_DIST)/lib -lxpcom -lxpcom_core -lmozalloc'
|
||||
XPCOM_FROZEN_LDOPTS='-L$(LIBXUL_DIST)/lib -lxpcom -lmozalloc'
|
||||
@ -1735,7 +1733,6 @@ ia64*-hpux*)
|
||||
MOZ_DEBUG_LDFLAGS='-DEBUG -DEBUGTYPE:CV'
|
||||
WARNINGS_AS_ERRORS='-WX'
|
||||
MOZ_OPTIMIZE_FLAGS="-O2"
|
||||
MOZ_JS_LIBS='$(libdir)/mozjs.lib'
|
||||
MOZ_FIX_LINK_PATHS=
|
||||
DYNAMIC_XPCOM_LIBS='$(LIBXUL_DIST)/lib/xpcom.lib $(LIBXUL_DIST)/lib/xpcom_core.lib $(LIBXUL_DIST)/lib/mozalloc.lib'
|
||||
XPCOM_FROZEN_LDOPTS='$(LIBXUL_DIST)/lib/xpcom.lib $(LIBXUL_DIST)/lib/mozalloc.lib'
|
||||
@ -4194,7 +4191,6 @@ AC_SUBST(WINDRES)
|
||||
AC_SUBST(IMPLIB)
|
||||
AC_SUBST(FILTER)
|
||||
AC_SUBST(BIN_FLAGS)
|
||||
AC_SUBST(MOZ_JS_LIBS)
|
||||
AC_SUBST(MOZ_DEBUG)
|
||||
AC_SUBST(MOZ_DEBUG_SYMBOLS)
|
||||
AC_SUBST(MOZ_DEBUG_ENABLE_DEFS)
|
||||
|
@ -10,7 +10,7 @@ MODULE='@MODULE@'
|
||||
LIBRARY_NAME='@LIBRARY_NAME@'
|
||||
NSPR_CFLAGS='@NSPR_CFLAGS@'
|
||||
JS_CONFIG_LIBS='@JS_CONFIG_LIBS@'
|
||||
MOZ_JS_LIBS='@MOZ_JS_LIBS@'
|
||||
MOZ_JS_LIBS='@JS_CONFIG_MOZ_JS_LIBS@'
|
||||
|
||||
FILENAME=`basename "$0"`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user