Fixing mach-o static build - made a function static in nsAppShellService so that it doesn't conflict with global symbols; add TK_LIBS (-framework Carbon) to the link line for mozilla-bin for both carbon and cocoa builds. r=cls, rs=brendan.

This commit is contained in:
bryner%netscape.com 2002-06-03 23:53:31 +00:00
Родитель dd38e575d6
Коммит f04bac4791
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -69,7 +69,7 @@
#if defined(XP_MAC) || defined(XP_MACOSX)
#include <Gestalt.h>
PRBool OnMacOSX();
static PRBool OnMacOSX();
#endif
#include "nsWidgetsCID.h"
@ -1073,7 +1073,7 @@ nsAppShellService::GetNativeAppSupport( nsINativeAppSupport **aResult ) {
//
// Return true if we are on Mac OS X, caching the result after the first call
//
PRBool
static PRBool
OnMacOSX()
{

Просмотреть файл

@ -192,7 +192,7 @@ ifeq ($(OS_ARCH),Darwin)
EXTRA_DSO_LDOPTS := $(subst -dynamiclib,-execute,$(EXTRA_DSO_LDOPTS))
ifdef BUILD_STATIC_LIBS
LDFLAGS += -framework QuickTime
LDFLAGS += -framework QuickTime $(TK_LIBS)
endif
endif