Skip to content

librustllvm.so missing from prefix target lib directory #6247

Closed

Description

@thomaslee

Running a "make install" vs master/incoming will install librustllvm.so to the host prefix library directory, but not the target library directory. In my case, this prevented me from linking a valid Rust program against librustdoc because rustc was unable to find librustllvm.so.

The fix is a trivial change to mk/install.mk: add the following line to the rule for install-target-$(1)-host-$(2): ..., after the equivalent line for CFG_RUNTIME_$(1):

$$(Q)$$(call INSTALL_LIB,$$(TL$(1)$(2)),$$(PTL$(1)$(2)),$$(CFG_RUSTLLVM_$(1)))

On 64-bit Linux, this will drop librustllvm.so in $prefix/lib/rustc/x86_64-unknown-linux-gnu/lib along with everything else.

Happy to provide a pull request, but this appears to be a one-liner.

Activity

  1. emberian commented on Jul 12, 2013

    @emberian
    Contributor

    @thomaslee the only way code lands in the tree is via pull request.

  2. added a commit that references this issue on Jul 15, 2013
    60d5bb9
  3. added a commit that references this issue on Nov 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions