aboutsummaryrefslogtreecommitdiff
path: root/Makeconfig
diff options
context:
space:
mode:
Diffstat (limited to 'Makeconfig')
-rw-r--r--Makeconfig14
1 files changed, 10 insertions, 4 deletions
diff --git a/Makeconfig b/Makeconfig
index 53dedee..9f6786c 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -338,15 +338,19 @@ ifndef asm-CPPFLAGS
asm-CPPFLAGS =
endif
+# ELF always supports init/fini sections
+ifeq ($(elf),yes)
+have-initfini = yes
+endif
+
# Installed name of the startup code.
-ifneq ($(elf),yes)
-# When not using ELF, there is just one startfile, called crt0.o.
+ifneq ($(have-initfini),yes)
+# When not having init/fini, there is just one startfile, called crt0.o.
start-installed-name = crt0.o
else
-# In the ELF universe, crt0.o is called crt1.o, and there are
+# On systems having init/fini, crt0.o is called crt1.o, and there are
# some additional bizarre files.
start-installed-name = crt1.o
-have-initfini = yes
endif
@@ -584,6 +588,8 @@ $(common-objpfx)version.mk: $(..)version.h $(..)Makeconfig
< $< > $@-new
mv -f $@-new $@
+common-generated += version.mk
+
ifeq (yes, $(build-shared))
# Process the shlib-versions file, which tells us what shared library