rediscovered start-group and end-group to make linker multi-pass. may not work on
authorChris Koeritz <fred@gruntose.com>
Tue, 29 May 2012 14:37:31 +0000 (10:37 -0400)
committerChris Koeritz <fred@gruntose.com>
Tue, 29 May 2012 14:37:31 +0000 (10:37 -0400)
mac though, since it was beefing about these before, which was what made us take them out.
need to test.

nucleus/applications/utilities/makefile
scripts/clam/cpp/rules.def

index e38699f85cd6032db82cd5673aa4fbacc6babb92..3b24f7a4127132434d66e74665f01970f9394f12 100644 (file)
@@ -7,7 +7,7 @@ TYPE = application
 ifeq "$(OMIT_VERSIONS)" ""
   SOURCE += util_version.rc 
 endif
-LOCAL_LIBS_USED = application loggers mathematics processes textual timely configuration filesystem nodes structures basi
+LOCAL_LIBS_USED = application basis configuration filesystem loggers mathematics nodes processes textual timely structure
 TARGETS = await_app_exit.exe bytedump.exe checker.exe dirtree.exe ini_edit.exe mdate.exe \
   splitter.exe 
 
index ffb6660290229de22664f68d3d612b6b814ee92b..7876b49f111201fe0122b0aa77f48354ab87b119 100644 (file)
@@ -284,9 +284,10 @@ COMPILER_FLAGS += $(HEADER_SEARCH_PATH:%=-I%) $(DEFINITIONS:%=-D%) $(UNDEFINITIO
 # to search and by adding all of the code libraries that are used.
 LOAD_FLAG_PREFIX += $(LIBRARY_SEARCH_PATH:%=$(LIBRARY_PATH_FLAG)%)
 ifeq "$(OP_SYSTEM)" "UNIX"
-#mac no like these flags?
-#  LOAD_FLAG_PREFIX += -Xlinker --start-group
-#  LOAD_FLAG_SUFFIX += -Xlinker --end-group
+#  ifneq "$(COMPILER)" "GNU_DARWIN"
+    LOAD_FLAG_PREFIX += -Xlinker --start-group
+    LOAD_FLAG_SUFFIX += -Xlinker --end-group
+#  endif
 endif
 # had to switch from prefix to suffix recently.  oddity.
 #LOAD_FLAG_PREFIX += $(LIBS_USED:%=$(LIBRARY_NAME_FLAG)%)