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
Elite Arcade
by
domasz
[
Today
at 01:42:28 am]
Untitled raycaster game (...
by
flowCRANE
[
Today
at 01:17:56 am]
504 Gateway Timeout
by
JanRoza
[April 20, 2026, 11:53:14 pm]
IDE Coolbar
by
Martin_fr
[April 20, 2026, 07:40:39 pm]
FPC Unleashed (inline var...
by
Fibonacci
[April 19, 2026, 07:56:12 am]
Change original package o...
by
pmralbuquerque
[April 19, 2026, 07:55:14 am]
Little bit...
by
Thaddy
[April 19, 2026, 07:28:48 am]
Can /my/ AI help me with ...
by
domasz
[April 19, 2026, 07:23:35 am]
PasLLM - LLM Inference En...
by
Thaddy
[April 19, 2026, 06:57:20 am]
Amigo programming languag...
by
paxscript
[April 19, 2026, 06:32:55 am]
I hope FreePascal can sup...
by
Fibonacci
[April 19, 2026, 04:45:25 am]
Translate .lfm file in a ...
by
wp
[April 19, 2026, 01:40:24 am]
DataPort or Synpase stat...
by
mas steindorff
[April 19, 2026, 01:39:31 am]
TChart how setup nicestep...
by
wp
[April 19, 2026, 12:02:04 am]
Renamed a TSQLQuery compo...
by
CraigC
[April 18, 2026, 11:14:18 pm]
FPC 3.2.4-rc1 available
by
marcov
[April 18, 2026, 08:08:03 pm]
Error: Compilation raised...
by
cdbc
[April 18, 2026, 07:02:50 pm]
Building units fails afte...
by
NormanDunbar
[April 18, 2026, 06:39:32 pm]
[SOLVED] Cannot build Uni...
by
Thausand
[April 18, 2026, 02:18:34 pm]
default pin settings, atm...
by
ccrause
[April 18, 2026, 11:45:37 am]
AI assisted translation o...
by
schuler
[April 18, 2026, 03:07:59 am]
Can I get the position an...
by
wp
[April 18, 2026, 12:23:04 am]
Playing video without to ...
by
n7800
[April 17, 2026, 11:51:39 pm]
Delimited text - how find...
by
n7800
[April 17, 2026, 11:28:25 pm]
overloading issues fpc3.2...
by
Martin_fr
[April 17, 2026, 10:21:07 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Linking against Shared Library, calling program without custom LD_LIBRARY_PATH (Read 4284 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: 12786
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