bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/16792] New: $tooldir/lib is sysrooted when built --with-sysroot


From: yselkowitz at cygwin dot com
Subject: [Bug ld/16792] New: $tooldir/lib is sysrooted when built --with-sysroot
Date: Tue, 01 Apr 2014 16:43:50 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=16792

            Bug ID: 16792
           Summary: $tooldir/lib is sysrooted when built --with-sysroot
           Product: binutils
           Version: 2.25 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: amodra at gmail dot com
          Reporter: yselkowitz at cygwin dot com

Created attachment 7515
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7515&action=edit
possible patch

Commit 0f70b6b is causing *all* search paths to be prefixed with '='.  AFAICS
though, this is incorrect for $exec_prefix/$target_alias/lib* and
$exec_prefix/$TOOL_LIB/lib*; these directories generally exist in the real root
and not in the sysroot.

Steps to reproduce:

1) configure binutils with a non-native --target and --with-sysroot

2) make

3) ./ld/ld-new --verbose | grep SEARCH_DIR

You will see entries such as SEARCH_DIR("=/usr/$target/lib") and (on multilib
targets) SEARCH_DIR("=/usr/$target/lib64").  IIUC these should not be
sysroot-prefixed.

There is probably a much better way of fixing this, but I'm attaching a
possible patch.

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]