SF Patch #102362 by bbum: Support dynamic module loading under OSX

[including support for modules w/Objective-C].
This commit is contained in:
Guido van Rossum 2001-01-10 21:41:16 +00:00
parent fef124346e
commit acb14c716f
2 changed files with 216 additions and 224 deletions

430
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -609,11 +609,7 @@ then
DYNIX/ptx*) LDSHARED="ld -G";; DYNIX/ptx*) LDSHARED="ld -G";;
Darwin/*|next/*) Darwin/*|next/*)
if test "$ns_dyld" if test "$ns_dyld"
then
if test "$ac_sys_system" = Darwin
then LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined suppress' then LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined suppress'
else LDSHARED='$(CC) $(LDFLAGS) -bundle -prebind'
fi
else LDSHARED='$(CC) $(CFLAGS) -nostdlib -r'; else LDSHARED='$(CC) $(CFLAGS) -nostdlib -r';
fi fi
if test "$with_next_framework" ; then if test "$with_next_framework" ; then
@ -686,7 +682,7 @@ then
# crt1.o) gets erroneously defined as common, which breaks dynamic # crt1.o) gets erroneously defined as common, which breaks dynamic
# loading of any modules which reference it in System.framework # loading of any modules which reference it in System.framework
next/4*|next/5*) LINKFORSHARED="-u __dummy -framework System" ;; next/4*|next/5*) LINKFORSHARED="-u __dummy -framework System" ;;
Darwin/*) LINKFORSHARED="-framework System" ;; Darwin/*) LINKFORSHARED="-u __dummy -framework System -framework Foundation" ;;
SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";; SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";;
ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
FreeBSD*|NetBSD*) FreeBSD*|NetBSD*)