When static-start-installed-name is different from
start-installed-name, we must not use the shared objects.
* csu/Makefile
(extra-objs): Add gmon-start.o when building shared library and
$(static-start-installed-name) is different from
$(start-installed-name).
$(objpfx)g$(static-start-installed-name): When building shared
library and $(static-start-installed-name) is different from
$(static-start-installed-name), revert to non-shared rule,
i.e. using $(objpfx)% and gmon-start.o.
+2015-08-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
+
+ Fix gcrt0.o compilation
+
+ When static-start-installed-name is different from
+ start-installed-name, we must not use the shared objects.
+
+ * csu/Makefile
+ (extra-objs): Add gmon-start.o when building shared library and
+ $(static-start-installed-name) is different from
+ $(start-installed-name).
+ $(objpfx)g$(static-start-installed-name): When building shared
+ library and $(static-start-installed-name) is different from
+ $(static-start-installed-name), revert to non-shared rule,
+ i.e. using $(objpfx)% and gmon-start.o.
+
2015-08-06 Joseph Myers <joseph@codesourcery.com>
[BZ #16519]
2015-08-06 Joseph Myers <joseph@codesourcery.com>
[BZ #16519]
ifeq (yes,$(build-shared))
extra-objs += S$(start-installed-name) gmon-start.os
ifeq (yes,$(build-shared))
extra-objs += S$(start-installed-name) gmon-start.os
+ifneq ($(start-installed-name),$(static-start-installed-name))
+extra-objs += gmon-start.o
+endif
install-lib += S$(start-installed-name)
generated += start.os
else
install-lib += S$(start-installed-name)
generated += start.os
else
# startfile with gmon-start.o, which defines a constructor function
# to turn on profiling code at startup.
ifeq (yes,$(build-shared))
# startfile with gmon-start.o, which defines a constructor function
# to turn on profiling code at startup.
ifeq (yes,$(build-shared))
-$(addprefix $(objpfx),$(sort g$(start-installed-name) \
- g$(static-start-installed-name))): \
+$(objpfx)g$(start-installed-name): \
$(objpfx)g%: $(objpfx)S% $(objpfx)gmon-start.os
$(link-relocatable)
$(objpfx)g%: $(objpfx)S% $(objpfx)gmon-start.os
$(link-relocatable)
+ifneq ($(start-installed-name),$(static-start-installed-name))
+$(objpfx)g$(static-start-installed-name): \
+ $(objpfx)g%: $(objpfx)% $(objpfx)gmon-start.o
+ $(link-relocatable)
+endif
else
$(addprefix $(objpfx),$(sort g$(start-installed-name) \
g$(static-start-installed-name))): \
else
$(addprefix $(objpfx),$(sort g$(start-installed-name) \
g$(static-start-installed-name))): \