104 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 505), 1) |
104 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 505), 1) |
105 # Old Comment: List the libraries in the order the compiler was designed for |
105 # Old Comment: List the libraries in the order the compiler was designed for |
106 # Not sure what the 'designed for' comment is referring too above. |
106 # Not sure what the 'designed for' comment is referring too above. |
107 # The order may not be too significant anymore, but I have placed this |
107 # The order may not be too significant anymore, but I have placed this |
108 # older libm before libCrun, just to make sure it's found and used first. |
108 # older libm before libCrun, just to make sure it's found and used first. |
109 LIBS += -lsocket -lsched -ldl $(LIBM) -lCrun -lthread -ldoor -lc |
109 LIBS += -lsocket -lsched -ldl $(LIBM) -lCrun -lthread -ldoor -lc -ldemangle |
110 else |
110 else |
111 ifeq ($(COMPILER_REV_NUMERIC), 502) |
111 ifeq ($(COMPILER_REV_NUMERIC), 502) |
112 # SC6.1 has it's own libm.so: specifying anything else provokes a name conflict. |
112 # SC6.1 has it's own libm.so: specifying anything else provokes a name conflict. |
113 LIBS += -ldl -lthread -lsocket -lm -lsched -ldoor |
113 LIBS += -ldl -lthread -lsocket -lm -lsched -ldoor -ldemangle |
114 else |
114 else |
115 LIBS += -ldl -lthread -lsocket $(LIBM) -lsched -ldoor |
115 LIBS += -ldl -lthread -lsocket $(LIBM) -lsched -ldoor -ldemangle |
116 endif # 502 |
116 endif # 502 |
117 endif # 505 |
117 endif # 505 |
118 else |
118 else |
119 LIBS += -lsocket -lsched -ldl $(LIBM) -lthread -lc |
119 LIBS += -lsocket -lsched -ldl $(LIBM) -lthread -lc -ldemangle |
120 endif # sparcWorks |
120 endif # sparcWorks |
121 |
121 |
122 # By default, link the *.o into the library, not the executable. |
122 # By default, link the *.o into the library, not the executable. |
123 LINK_INTO$(LINK_INTO) = LIBJVM |
123 LINK_INTO$(LINK_INTO) = LIBJVM |
124 |
124 |