about summary refs log tree commit diff
path: root/Makeconfig
diff options
context:
space:
mode:
authorRyan S. Arnold <rsa@us.ibm.com>2010-01-14 15:59:02 -0800
committerRoland McGrath <roland@redhat.com>2010-01-14 15:59:02 -0800
commit35e6599946c142e1685c9dc46cff55e4ae6aac37 (patch)
treeb9d9ea86aeaaff6d50365072d30798392abbcf23 /Makeconfig
parent346bc35c33fa08e23d7774d374b0e2586ca5dab6 (diff)
downloadglibc-35e6599946c142e1685c9dc46cff55e4ae6aac37.tar.gz
glibc-35e6599946c142e1685c9dc46cff55e4ae6aac37.tar.xz
glibc-35e6599946c142e1685c9dc46cff55e4ae6aac37.zip
Pass $(sysdep-LDFLAGS) when using --print-file-name.
Diffstat (limited to 'Makeconfig')
-rw-r--r--Makeconfig8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makeconfig b/Makeconfig
index 9f134cc137..15cd4caad5 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -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/