Lines 447-457
ifndef +link-pie
Link Here
|
447 |
$(common-objpfx)libc% $(+postinit),$^) \ |
447 |
$(common-objpfx)libc% $(+postinit),$^) \ |
448 |
$(link-extra-libs) $(link-libc) $(+postctorS) $(+postinit) |
448 |
$(link-extra-libs) $(link-libc) $(+postctorS) $(+postinit) |
449 |
endif |
449 |
endif |
|
|
450 |
+link = +link-pie |
450 |
# Command for statically linking programs with the C library. |
451 |
# Command for statically linking programs with the C library. |
451 |
ifndef +link-static |
452 |
ifndef +link-static |
452 |
+link-static = $(CC) -nostdlib -nostartfiles -static -o $@ \ |
453 |
+link-static = $(CC) -nostdlib -nostartfiles -static -o $@ \ |
453 |
$(sysdep-LDFLAGS) $(LDFLAGS) $(LDFLAGS-$(@F)) \ |
454 |
$(sysdep-LDFLAGS) $(LDFLAGS) $(LDFLAGS-$(@F)) \ |
454 |
$(addprefix $(csu-objpfx),$(static-start-installed-name)) \ |
455 |
$(addprefix $(csu-objpfx),S$(static-start-installed-name)) \ |
455 |
$(+preinit) $(+prector) \ |
456 |
$(+preinit) $(+prector) \ |
456 |
$(filter-out $(addprefix $(csu-objpfx),start.o \ |
457 |
$(filter-out $(addprefix $(csu-objpfx),start.o \ |
457 |
$(start-installed-name))\ |
458 |
$(start-installed-name))\ |