Skip to content

Commit

Permalink
Bug 715576 - libalerts_s.dylib is incorrectly-named (_s indicates a s…
Browse files Browse the repository at this point in the history
…tatic library) and links against the static-js library, which is bad. Make it link against either libxul (static-js) or the dynamic-js library correctly, and rename it. r=ted
  • Loading branch information
bsmedberg committed Jan 11, 2012
1 parent cedb1bf commit 2fa20db
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion b2g/installer/package-manifest.in
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@
@BINPATH@/components/nsWifiWorker.manifest
#endif
#ifdef XP_MACOSX
@BINPATH@/components/libalerts_s.dylib
@BINPATH@/components/libalerts.dylib
#endif
#ifdef MOZ_ENABLE_DBUS
@BINPATH@/components/@DLL_PREFIX@dbusservice@DLL_SUFFIX@
Expand Down
2 changes: 1 addition & 1 deletion browser/installer/package-manifest.in
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@
@BINPATH@/components/BrowserProfileMigrators.manifest
@BINPATH@/components/ChromeProfileMigrator.js
#ifdef XP_MACOSX
@BINPATH@/components/libalerts_s.dylib
@BINPATH@/components/libalerts.dylib
#endif
#ifdef MOZ_ENABLE_DBUS
@BINPATH@/components/@DLL_PREFIX@dbusservice@DLL_SUFFIX@
Expand Down
3 changes: 3 additions & 0 deletions browser/installer/removed-files.in
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ components/@DLL_PREFIX@brwsrdir@DLL_SUFFIX@
components/@DLL_PREFIX@myspell@DLL_SUFFIX@
components/@DLL_PREFIX@spellchecker@DLL_SUFFIX@
components/@DLL_PREFIX@spellchk@DLL_SUFFIX@
#ifdef XP_MACOSX
components/libalerts_s.dylib
#endif
components/aboutCertError.js
components/aboutPrivateBrowsing.js
components/aboutRights.js
Expand Down
2 changes: 1 addition & 1 deletion mobile/android/installer/package-manifest.in
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@
@BINPATH@/components/nsFilePicker.js
@BINPATH@/components/nsFilePicker.manifest
#ifdef XP_MACOSX
@BINPATH@/components/libalerts_s.dylib
@BINPATH@/components/libalerts.dylib
#endif
#ifdef MOZ_ENABLE_DBUS
@BINPATH@/components/@DLL_PREFIX@dbusservice@DLL_SUFFIX@
Expand Down
2 changes: 1 addition & 1 deletion mobile/xul/installer/package-manifest.in
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@
@BINPATH@/components/nsWifiWorker.manifest
#endif
#ifdef XP_MACOSX
@BINPATH@/components/libalerts_s.dylib
@BINPATH@/components/libalerts.dylib
#endif
#ifdef MOZ_ENABLE_DBUS
@BINPATH@/components/@DLL_PREFIX@dbusservice@DLL_SUFFIX@
Expand Down
10 changes: 8 additions & 2 deletions toolkit/components/alerts/mac/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk

MODULE = alerts
LIBRARY_NAME = alerts_s
LIBRARY_NAME = alerts
IS_COMPONENT = 1
FORCE_SHARED_LIB = 1

Expand Down Expand Up @@ -70,11 +70,17 @@ SHARED_LIBRARY_LIBS = \
growl/$(LIB_PREFIX)growl_s.$(LIB_SUFFIX) \
$(NULL)

ifdef JS_SHARED_LIBRARY
js_ldopts = $(MOZ_JS_LIBS)
else
js_ldopts = $(LIBXUL_LIBS)
endif

EXTRA_DSO_LDOPTS += \
-framework Carbon \
$(XPCOM_GLUE_LDOPTS) \
$(js_ldopts) \
$(NSPR_LIBS) \
$(MOZ_JS_LIBS) \
$(NULL)

include $(topsrcdir)/config/rules.mk

0 comments on commit 2fa20db

Please sign in to comment.