Revision: 5901
Author: [email protected]
Date: Wed Aug  5 23:05:01 2009
Log: Revert r5894, as it leads to an invalid platform ABI for the Mac  
plugin.

http://code.google.com/p/google-web-toolkit/source/detail?r=5901

Modified:
  /trunk/plugins/config.mk
  /trunk/plugins/xpcom/Makefile

=======================================
--- /trunk/plugins/config.mk    Wed Aug  5 18:39:55 2009
+++ /trunk/plugins/config.mk    Wed Aug  5 23:05:01 2009
@@ -66,7 +66,7 @@
  CFLAGS= -g -O2 -fPIC $(INC) -rdynamic -m$(FLAG32BIT)
  else ifeq ($(shell uname),Darwin)
  OS=mac
-CFLAGS= -g -O2 -fPIC $(INC) -D__mac -arch i386 -arch ppc
+CFLAGS= -g -O2 -fPIC $(INC) -D__mac -arch $(MARCH)
  AR=libtool
  ARFLAGS=-static -o
  else ifeq ($(shell uname),SunOS)
=======================================
--- /trunk/plugins/xpcom/Makefile       Wed Aug  5 18:39:55 2009
+++ /trunk/plugins/xpcom/Makefile       Wed Aug  5 23:05:01 2009
@@ -14,18 +14,22 @@

  include ../config.mk

-# Make variables intended to be settable from the command line:
+# Make variables intended to be settable fromthe command line:
+#   DEFAULT_FIREFOX_LIBS       points to /usr/lib/firefox or equivalent
  #   PLUGIN_SDKS                       points to GWT /plugin-sdks directory
  #   GECKO_PLATFORM            XPCOM ABI (ie, Linux_x86_64-gcc3)
  #

  ifeq ($(OS),mac)
+DEFAULT_FIREFOX_LIBS ?= /Applications/Firefox.app/Contents/MacOS
  RUN_PATH_FLAG = -executable_path
  DLL_SUFFIX = .dylib
  DLLFLAGS = -bundle -arch i386 -arch ppc
+TARGET_PLATFORM = Darwin_x86-gcc3
  # Mac puts multiple architectures into the same files
-TARGET_PLATFORM = Darwin-gcc3
+GECKO_PLATFORM = Darwin-gcc3
  else ifeq ($(OS),linux)
+DEFAULT_FIREFOX_LIBS ?= /usr/lib/firefox
  RUN_PATH_FLAG = -rpath-link
  DLL_SUFFIX = .so
  DLLFLAGS = -shared -m$(FLAG32BIT)
@@ -96,7 +100,9 @@
  #             -Wl,$(RUN_PATH_FLAG),$(FIREFOX_LIBS) \
  #             -lxpcomglue_s -lxpcom -lnspr4 -lmozjs
  DLLFLAGS += \
+               -L$(DEFAULT_FIREFOX_LIBS) \
                -L$(GECKO_LIBS) \
+               -Wl,$(RUN_PATH_FLAG),$(DEFAULT_FIREFOX_LIBS) \
                -Wl,$(RUN_PATH_FLAG),$(GECKO_LIBS) \
                -lxpcomglue_s -lxpcom -lnspr4 -lmozjs


--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to