[haiku-bugs] Re: [Haiku] #12184: 'setarch x86' doesn't change LIBRARY_PATH

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Tue, 30 Jun 2015 06:19:51 -0000

#12184: 'setarch x86' doesn't change LIBRARY_PATH
-----------------------------------------------+---------------------------
Reporter: haiqu | Owner: nobody
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: Applications/Command Line Tools | Version:
Resolution: | R1/Development
Blocked By: | Keywords:
Has a Patch: 0 | Blocking:
| Platform: All
-----------------------------------------------+---------------------------

Comment (by pulkomandy):

The runtime_loader automatically adds the architecture suffix to the paths
in LIBRARY_PATH (and same for add-ons). If you changed the LIBRARY_PATH,
any gcc2 app would stop working (including bash, so you wouldn't go very
far in your setarch environment).

The fact that some language's runtime are using/manipulating LIBRARY_PATH
without taking this into account is not Haiku's problem. Please report
this to the people working on Freepascal so they can add the suffix where
needed.

The find_paths and BPathFinder APIs were introduced to make it easy for
applications to find the correct paths. These function will do the
appropriate manipulations and add the suffix as needed to the paths they
return.

--
Ticket URL: <https://dev.haiku-os.org/ticket/12184#comment:2>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: