# time (for the non-dylib files), and then call lipo to create fat files
# for the three dylibs.
##---------------------------------------------------------------------
-ALLARCHS = hppa i386 m68k ppc ppc64 sparc
+ALLARCHS = hppa i386 m68k ppc ppc64 sparc x86_64
NARCHS = $(words $(RC_ARCHS))
USRLIB = /usr/lib
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
- <string>8.11</string>
+ <string>8.8</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CarbonLazyValues</key>
NEXTSTEP_INSTALLDIR = $(USRLIBDIR)
WINDOWS_INSTALLDIR = /Library/Frameworks
PDO_UNIX_INSTALLDIR = /Library/Frameworks
+
+ifneq ($(filter %64,$(RC_ARCHS)),)
+LP64 = 1
+endif
LIBS = -lc -lcommonCrypto -ldyldapis -linfo -lm -lmacho\
-lnotify -lunc -lkeymgr
-ifneq ($(RC_ARCHS),ppc64)
+ifndef LP64
LIBS += -lstreams -lkvm -llaunch
endif
DEBUG_LIBS = $(LIBS)
.SUFFIXES: .st
+ALL_ARCHS = i386 ppc ppc64 x86_64
SEG1ADDR_i386 = 0xffff0000
SEG1ADDR_ppc = 0xffff8000
SEG1ADDR_ppc64 = 0xffffffffffff8000
+SEG1ADDR_x86_64 = 0x00007fffffe00000
SLFS_F_PH = /System/Library/Frameworks/System.framework/PrivateHeaders
-$(OFILE_DIR)/%.ppc.o %.ppc.o $(OFILE_DIR)/%.ppc64.o %.ppc64.o $(OFILE_DIR)/%.i386.o %.i386.o: %.st
+$(foreach A,$(ALL_ARCHS),$(OFILE_DIR)/%.$(A).o %.$(A).o): %.st
$(CC) -arch $(CURRENT_ARCH) -x assembler-with-cpp \
-I$(SLFS_F_PH)/$(CURRENT_ARCH) \
$(ALL_CFLAGS) -c -o $(OFILE_DIR)/commsym.$(CURRENT_ARCH).o $<
OTHER_LIBTOOL_FLAGS = $(OFILE_DIR)/spinlock_stub.o \
$(OFILE_DIR)/spinlocktry_stub.o \
$(OFILE_DIR)/spinunlock_stub.o \
- -L/usr/lib/system -sub_library libmathCommon \
- -lmathCommon -sectorder __TEXT __text System.order \
+ -L/usr/lib/system -sub_library libmathCommon -lmathCommon \
-segcreate __DATA __commpage $(OFILE_DIR)/CommPageSymbols.o
+ifndef LP64
+OTHER_LIBTOOL_FLAGS += -sectorder __TEXT __text System.order
+endif
BSD_LIBS = c info kvm m pthread dbm poll dl rpcsvc
L__spin_lock$stub:
.indirect_symbol __spin_lock
movl $(_COMM_PAGE_SPINLOCK_LOCK), %eax
- jmp %eax
+ jmp *%eax
nop
call LPC$1
LPC$1: popl %eax
L__spin_lock_try$stub:
.indirect_symbol __spin_lock_try
movl $(_COMM_PAGE_SPINLOCK_TRY), %eax
- jmp %eax
+ jmp *%eax
nop
call LPC$1
LPC$1: popl %eax
L__spin_unlock$stub:
.indirect_symbol __spin_unlock
movl $(_COMM_PAGE_SPINLOCK_UNLOCK), %eax
- jmp %eax
+ jmp *%eax
nop
call LPC$1
LPC$1: popl %eax