patching file csu/Makefile Hunk #1 FAILED at 71. Hunk #2 succeeded at 157 with fuzz 2 (offset 7 lines). 1 out of 2 hunks FAILED -- saving rejects to file csu/Makefile.rej patching file sysdeps/mach/hurd/Makefile Hunk #1 succeeded at 190 with fuzz 2 (offset 2 lines). Reject file csu/Makefile.rej: --- csu/Makefile +++ csu/Makefile @@ -71,17 +71,21 @@ else extra-objs += gmon-start.o endif +ifeq (yes,$(enable-static-pie)) +extra-objs += r$(start-installed-name) gr$(start-installed-name) +install-lib += r$(start-installed-name) gr$(start-installed-name) +endif + ifneq ($(start-installed-name),$(static-start-installed-name)) -# FIXME: Only Hurd defines static-start-installed-name. Hurd needs to -# provide special rules to support static PIE. extra-objs += $(static-start-installed-name) g$(static-start-installed-name) omit-deps += $(patsubst %.o,%,$(static-start-installed-name) \ g$(static-start-installed-name)) install-lib += $(static-start-installed-name) g$(static-start-installed-name) -else ifeq (yes,$(enable-static-pie)) -extra-objs += r$(start-installed-name) gr$(start-installed-name) -install-lib += r$(start-installed-name) gr$(start-installed-name) +extra-objs += r$(static-start-installed-name) gr$(static-start-installed-name) +omit-deps += $(patsubst %.o,%,r$(static-start-installed-name) \ + gr$(static-start-installed-name)) +install-lib += r$(static-start-installed-name) gr$(static-start-installed-name) endif endif