]> git.saurik.com Git - apple/libsystem.git/blobdiff - Makefile.preamble
Libsystem-111.tar.gz
[apple/libsystem.git] / Makefile.preamble
index 582ce097bc679e526745b3f70ea0e25cd6f3f774..1a7dd31bd646fccfbc102d975ef14626de5a210e 100644 (file)
@@ -8,14 +8,17 @@ AFTER_INSTALL  += compat-next compat-bsd copy_plist
 PROFILE_BUILD_LIBS := $(foreach LIBS, $(LIBS), $(LIBS)_profile) $(GCCLIBS)
 DEBUG_BUILD_LIBS := $(foreach LIBS, $(LIBS), $(LIBS)_debug  ) $(GCCLIBS)
 
-# 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
+ifeq ($(BUILD_TYPE),normal)
+LIBMATHCOMMONSUFFIX =
+else
+LIBMATHCOMMONSUFFIX = $(BUILD_TYPE_SUFFIX)
+endif
+OTHER_LIBTOOL_FLAGS = \
+       -L/usr/lib/system -sub_library libmathCommon$(LIBMATHCOMMONSUFFIX) \
+       -lmathCommon$(LIBMATHCOMMONSUFFIX) \
+       -segcreate __DATA __commpage $(OFILE_DIR)/CommPageSymbols.o \
+       -Wl,-order_file,SystemInit.order -Wl,-order_file,System.order
 
-BSD_LIBS = c info kvm m pthread dbm poll dl rpcsvc
+BSD_LIBS = c info m pthread dbm poll dl rpcsvc proc
 
 include $(MAKEFILEPATH)/CoreOS/ProjectBuilder/Makefile.Preamble.Common