Opened 15 years ago

Closed 15 years ago

#3957 closed bug (fixed)

Building on OS X fails from tools not finding libroot_build.so

Reported by: titer Owned by: bonefish
Priority: normal Milestone: R1
Component: Build System Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

For example:

SetType1 generated/objects/haiku/x86/release/add-ons/kernel/network/protocols/unix/unix 

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:generated/objects/darwin/lib
generated/objects/darwin/x86/release/tools/settype -t application/x-vnd.Be-elfexecutable "generated/objects/haiku/x86/release/add-ons/kernel/network/protocols/unix/unix" ;

dyld: Library not loaded: ../../../../../../generated/objects/darwin/lib/libroot_build.so
  Referenced from: /Volumes/Haiku/haiku/generated/objects/darwin/x86/release/tools/settype
  Reason: image not found
...failed SetType1 generated/objects/haiku/x86/release/add-ons/kernel/network/protocols/unix/unix ...

Note that the tools load fine if run from inside generated/objects/darwin/x86/release/tools/, but jam runs them from the source root directory.

I am attaching a patch for build/jam/BuildSetup that sets DYLD_LIBRARY_PATH on Darwin the same way it sets LD_LIBRARY_PATH on Linux, which fixes the problem for me.

Attachments (1)

3957.patch (642 bytes ) - added by titer 15 years ago.

Download all attachments as: .zip

Change History (2)

by titer, 15 years ago

Attachment: 3957.patch added

comment:1 by bonefish, 15 years ago

Resolution: fixed
Status: newclosed

Thanks! Applied in hrev30845.

Note: See TracTickets for help on using tickets.