Skip to content

[SR-5755] AddSwift.cmake hardcodes "/usr/lib/swift/linux" into the RPATH of its shared libraries #48325

@kevints

Description

@kevints
mannequin
Previous ID SR-5755
Radar None
Original Reporter @kevints
Type Bug
Status Closed
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Project Infrastructure
Labels Bug, CMake, Linux
Assignee None
Priority Medium

md5: 6050e1240c6e06e66401384bc1368587

is duplicated by:

  • SR-9315 Linux shared libraries contain unnecessary RUNPATH entries

relates to:

  • SR-1967 Need way to disable inclusion of hard-coded RPATH to stdlib dir
  • SR-9315 Linux shared libraries contain unnecessary RUNPATH entries

Issue Description:

This mean that CMAKE_INSTALL_PREFIX (the --install-destdir flag to build-script) is not fully respected on Linux and it is difficult to build a relocatable swift binary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    LinuxPlatform: LinuxbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.cmake

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions