Build changes to build mach-o on gcc3: use -install_name option only when linking using -dynamiclib option, since with gcc3 it causes an error when used with -bundle or -execute. r=bryner sr=beard b=153525

This commit is contained in:
dbaron%fas.harvard.edu 2002-06-26 03:09:32 +00:00
Родитель bcce436d14
Коммит a44ddf4882
3 изменённых файлов: 3 добавлений и 3 удалений

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

@ -448,7 +448,7 @@ ifeq ($(OS_ARCH),Darwin)
ifdef IS_COMPONENT
EXTRA_DSO_LDOPTS += -bundle
else
EXTRA_DSO_LDOPTS += -dynamiclib
EXTRA_DSO_LDOPTS += -dynamiclib -install_name @executable_path/\$@
endif
endif

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

@ -777,7 +777,7 @@ case "$target" in
no_x=yes
MACOSX=1
_PLATFORM_DEFAULT_TOOLKIT='mac'
DSO_LDOPTS="$DSO_LDOPTS -arch ppc -install_name @executable_path/\$@"
DSO_LDOPTS="$DSO_LDOPTS -arch ppc"
TK_LIBS='-framework Carbon /System/Library/Frameworks/Carbon.framework/Carbon'
TK_CFLAGS="-I/Developer/Headers/FlatCarbon -F/System/Library/Frameworks"
CFLAGS="$CFLAGS $TK_CFLAGS"

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

@ -189,7 +189,7 @@ $(PROGRAM): $(SPLASH_XPM)
endif
ifeq ($(OS_ARCH),Darwin)
EXTRA_DSO_LDOPTS := $(subst -dynamiclib,-execute,$(EXTRA_DSO_LDOPTS))
EXTRA_DSO_LDOPTS := $(subst -dynamiclib -install_name @executable_path/\$@,-execute,$(EXTRA_DSO_LDOPTS))
ifdef BUILD_STATIC_LIBS
LDFLAGS += -framework QuickTime $(TK_LIBS)