diff options
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/mach/hurd/i386/Makeconfig | 4 | ||||
-rw-r--r-- | sysdeps/mach/hurd/i386/Makefile | 15 |
2 files changed, 7 insertions, 12 deletions
diff --git a/sysdeps/mach/hurd/i386/Makeconfig b/sysdeps/mach/hurd/i386/Makeconfig new file mode 100644 index 0000000000..1b65bb07aa --- /dev/null +++ b/sysdeps/mach/hurd/i386/Makeconfig @@ -0,0 +1,4 @@ +# We need special startup code for statically linked binaries. +# See Makefile in this directory for the rule that builds this. +# We must define this variable earlier than sysdeps Makefiles are included. +static-start-installed-name = crt0.o diff --git a/sysdeps/mach/hurd/i386/Makefile b/sysdeps/mach/hurd/i386/Makefile index 335324e957..b3c619a13d 100644 --- a/sysdeps/mach/hurd/i386/Makefile +++ b/sysdeps/mach/hurd/i386/Makefile @@ -1,18 +1,9 @@ -# We need special startup code for statically linked binaries. -static-start-installed-name = crt0.o - ifeq ($(subdir),csu) -extra-objs += crt0.o -install-lib += crt0.o -omit-deps += crt0 +extra-objs += static-start.o + +# We need special startup code for statically linked binaries. $(objpfx)crt0.o: $(objpfx)static-start.o $(objpfx)abi-note.o $(objpfx)init.o $(link-relocatable) -# compat for libc.so.0.2 only -# This is needed to be backward-compatible with glibc-2.0.x startup code -# that was miscompiled so that it jumps to 0 if there is a nonzero -# __gmon_start__ symbol, but works if there is none. -CFLAGS-initfini.s += -DWEAK_GMON_START - endif |