Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
Linking against Shared Library, calling program without custom LD_LIBRARY_PATH
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
text color visible
by
creaothceann
[
Today
at 09:49:21 am]
Qt does not position form...
by
dbannon
[
Today
at 09:42:44 am]
Read/Parse PDB file to ge...
by
tooknox
[
Today
at 09:22:16 am]
Connecting to AzureSQL
by
Zvoni
[
Today
at 08:22:08 am]
Transparent form
by
Pe3s
[
Today
at 07:34:57 am]
When is it useful for a p...
by
Thaddy
[
Today
at 06:51:18 am]
Artificial Intelligence a...
by
Thaddy
[
Today
at 06:06:51 am]
FPC Unleashed (inline var...
by
Fibonacci
[
Today
at 06:06:41 am]
show me the parameters ce...
by
n7800
[May 13, 2026, 11:14:34 pm]
How to compare floating p...
by
Sander
[May 13, 2026, 11:12:02 pm]
TA Chart Axes visibility ...
by
Nicole
[May 13, 2026, 08:27:54 pm]
new feature for IDE
by
n7800
[May 13, 2026, 08:20:14 pm]
Can /my/ AI help me with ...
by
440bx
[May 13, 2026, 07:28:37 pm]
SynEdit auto End of line ...
by
eldonfsr
[May 13, 2026, 05:02:39 pm]
Scripts to generate ofici...
by
robert rozee
[May 13, 2026, 03:00:27 pm]
[beyond fixing]FPGMAP acc...
by
Thaddy
[May 13, 2026, 01:13:34 pm]
Hint tools gives wrong hi...
by
Nicole
[May 13, 2026, 01:11:47 pm]
[Solved] Scrollable, sing...
by
MathMan
[May 13, 2026, 01:00:08 pm]
Error: -macosx_version_mi...
by
Thaddy
[May 13, 2026, 11:59:25 am]
Stack overflow detection
by
Khrys
[May 13, 2026, 11:56:27 am]
Can I get the position an...
by
wp
[May 13, 2026, 11:26:26 am]
HTTP2 Support
by
valdir.marcos
[May 13, 2026, 10:10:34 am]
Lazarus and FreePascal on...
by
shayneoneill
[May 13, 2026, 05:51:48 am]
SYnEdit lose cursor
by
eldonfsr
[May 13, 2026, 03:31:46 am]
IDE: Property editor does...
by
Raskaton
[May 13, 2026, 01:24:59 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Linking against Shared Library, calling program without custom LD_LIBRARY_PATH (Read 4303 times)
ProgramMonkey
Newbie
Posts: 6
Linking against Shared Library, calling program without custom LD_LIBRARY_PATH
«
on:
July 07, 2014, 02:57:00 am »
gcc , can use -Wl,-rpath=lib_directory pameter.
fpc, how can i contain a lib path in elf ?
Logged
marcov
Administrator
Hero Member
Posts: 12845
FPC developer.
Re: Linking against Shared Library, calling program without custom LD_LIBRARY_PATH
«
Reply #1 on:
July 07, 2014, 10:09:31 am »
-Xr/path/something
I don't know if it works on all systems though.
Logged
ProgramMonkey
Newbie
Posts: 6
Re: Linking against Shared Library, calling program without custom LD_LIBRARY_PATH
«
Reply #2 on:
July 07, 2014, 04:31:30 pm »
thanks, I use the patchelf utils can add rpath.
Logged
ProgramMonkey
Newbie
Posts: 6
Re: Linking against Shared Library, calling program without custom LD_LIBRARY_PATH
«
Reply #3 on:
July 07, 2014, 04:42:18 pm »
also, using Sh script to temporary export LD_LIBRARY_PATH.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
Linking against Shared Library, calling program without custom LD_LIBRARY_PATH
TinyPortal
© 2005-2018