Opened 11 years ago

Closed 10 years ago

#24807 closed defect (fixed)

llvm installs libraries with install_name not set to final path

Reported by: ryandesign (Ryan Schmidt) Owned by: erickt@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc: arto.bendiken@…, mjhsieh@…
Port: llvm

Description

llvm installs some libraries that are linked to their location in the build directory instead of their final install location. This means programs trying to use those libraries fail unless the user sets a variable like DYLD_FALLBACK_LIBRARY_PATH, which we want to avoid.

On Tiger:

otool -L /opt/local/lib/libLTO.dylib
/opt/local/lib/libLTO.dylib:
        /opt/local/var/macports/build/_Users_rschmidt_macports_dports_lang_llvm/work/build/Release-Asserts/lib/libLTO.dylib (compatibility version 0.0.0, current version 0.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.11)
        /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)
        /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)

On Snow Leopard:

$ otool -L /opt/local/lib/libLLVMHello.dylib /opt/local/lib/libprofile_rt.dylib
/opt/local/lib/libLLVMHello.dylib:
        /opt/local/var/macports/build/_Users_rschmidt_macports_dports_lang_llvm/work/build/Release-Asserts/lib/LLVMHello.dylib (compatibility version 0.0.0, current version 0.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.0.0)
        /usr/lib/libffi.dylib (compatibility version 1.0.0, current version 1.0.0)
        /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)
/opt/local/lib/libprofile_rt.dylib:
        /opt/local/var/macports/build/_Users_rschmidt_macports_dports_lang_llvm/work/build/Release-Asserts/lib/profile_rt.dylib (compatibility version 0.0.0, current version 0.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.0.0)
        /usr/lib/libffi.dylib (compatibility version 1.0.0, current version 1.0.0)
        /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)

Change History (4)

comment:1 Changed 11 years ago by arto.bendiken@…

Cc: arto.bendiken@… added

Cc Me!

comment:2 Changed 11 years ago by mjhsieh@…

Cc: mjhsieh@… added

Cc Me!

comment:3 Changed 11 years ago by macports@…

A fix for this issue and several related enhancements are available in #24112

comment:4 Changed 10 years ago by erickt@…

Resolution: fixed
Status: newclosed

This has been fixed in r72200.

Note: See TracTickets for help on using tickets.