Skip to content

Commit

Permalink
Pass $(sysdep-LDFLAGS) when using --print-file-name.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan S. Arnold authored and Roland McGrath committed Jan 14, 2010
1 parent 346bc35 commit 35e6599
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2010-01-14 Ryan S. Arnold <[email protected]>

* Makeconfig (+prector, +postctor, +prectorS, +postctorS): Add
$(sysdep-LDFLAGS) to pre and post ctors so that the proper .o
files are found by GCC.

2010-01-14 Ulrich Drepper <[email protected]>

[BZ #11126]
Expand Down
8 changes: 4 additions & 4 deletions Makeconfig
Original file line number Diff line number Diff line change
Expand Up @@ -549,11 +549,11 @@ endif
ifeq ($(elf),yes)
+preinit = $(addprefix $(csu-objpfx),crti.o)
+postinit = $(addprefix $(csu-objpfx),crtn.o)
+prector = `$(CC) --print-file-name=crtbegin.o`
+postctor = `$(CC) --print-file-name=crtend.o`
+prector = `$(CC) $(sysdep-LDFLAGS) --print-file-name=crtbegin.o`
+postctor = `$(CC) $(sysdep-LDFLAGS) --print-file-name=crtend.o`
# Variants of the two previous definitions for linking PIE programs.
+prectorS = `$(CC) --print-file-name=crtbeginS.o`
+postctorS = `$(CC) --print-file-name=crtendS.o`
+prectorS = `$(CC) $(sysdep-LDFLAGS) --print-file-name=crtbeginS.o`
+postctorS = `$(CC) $(sysdep-LDFLAGS) --print-file-name=crtendS.o`
+interp = $(addprefix $(elf-objpfx),interp.os)
endif
csu-objpfx = $(common-objpfx)csu/
Expand Down

0 comments on commit 35e6599

Please sign in to comment.