- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- linking using $ORIGIN or +origin
Operating System - Linux
1756746
Members
2852
Online
108852
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2006 11:35 AM
09-08-2006 11:35 AM
linking using $ORIGIN or +origin
Hi all,
(posted to HP-UX -> general but no news, so here may be the right place).
I'm trying to link my binaries so that I don't have to rely on SHLIB_PATH and a wrapper script at startup, My binaries depends on a lot of shared objects that will be at a defined path in the install tree.
bash-3.00$ cd myInstallTree
bash-3.00$ tree ./
./
|-- bin
| `-- mybin
`-- lib
|-- 3rdparty
| `-- libz.sl
`-- libA.sl
Under Linux and Solaris you can use the $ORIGIN variable, giving this to the linker
-Wl,-rpath -Wl,\$$ORIGIN/../lib # (from a Linux Makefile)
I saw in the HP-UX ld manpage that a +origin option is available, but I cannot figure out how to use it according to my needs.
Any ideas ?
Thanks,
Benjamin.
ps:
It's on HP-UX 11.00.
(posted to HP-UX -> general but no news, so here may be the right place).
I'm trying to link my binaries so that I don't have to rely on SHLIB_PATH and a wrapper script at startup, My binaries depends on a lot of shared objects that will be at a defined path in the install tree.
bash-3.00$ cd myInstallTree
bash-3.00$ tree ./
./
|-- bin
| `-- mybin
`-- lib
|-- 3rdparty
| `-- libz.sl
`-- libA.sl
Under Linux and Solaris you can use the $ORIGIN variable, giving this to the linker
-Wl,-rpath -Wl,\$$ORIGIN/../lib # (from a Linux Makefile)
I saw in the HP-UX ld manpage that a +origin option is available, but I cannot figure out how to use it according to my needs.
Any ideas ?
Thanks,
Benjamin.
ps:
It's on HP-UX 11.00.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2006 01:50 PM
09-08-2006 01:50 PM
Re: linking using $ORIGIN or +origin
>(posted to HP-UX -> general).
You may want to subscribe to the HPUX-DEVTOOLS mailing list:
http://h21007.www2.hp.com/dspp/comm/comm_Community_Home_IDX/1,1273,,00.html
Looking at the man page it suggests that $ORIGIN be used instead of +origin. It has -Wl,+B,$ORIGIN and:
For more details on $ORIGIN, use the +help option or see the HP-UX Linker and Libraries User's Guide.
http://www.docs.hp.com/en/B2355-90730/B2355-90730.html
You may want to subscribe to the HPUX-DEVTOOLS mailing list:
http://h21007.www2.hp.com/dspp/comm/comm_Community_Home_IDX/1,1273,,00.html
Looking at the man page it suggests that $ORIGIN be used instead of +origin. It has -Wl,+B,$ORIGIN and:
For more details on $ORIGIN, use the +help option or see the HP-UX Linker and Libraries User's Guide.
http://www.docs.hp.com/en/B2355-90730/B2355-90730.html
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP