-OTHER_LIBTOOL_FLAGS = -sectorder __TEXT __text System.order
-#OTHER_LIBTOOL_FLAGS += -L/Users/Public/SandBox/$(USER)/BUILD/c
+# the _stub.o files need to come first to ensure that they override the default stubs
+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 \
+ -segcreate __DATA __commpage $(OFILE_DIR)/CommPageSymbols.o