difference between RPATH and normal linking while building


 
Thread Tools Search this Thread
Operating Systems Solaris difference between RPATH and normal linking while building
# 1  
Old 05-23-2008
difference between RPATH and normal linking while building

while building in solaris and going for dynamic linking

whats the difference or advantage or disadvantage in
using RPATH [-R] vs [-L] while linking package and dependency libraries


i need a little explanation about this RPATH option specially and the difference with normal linking using -L
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

awk to calculate difference of split and sum the difference

In the awk I am trying to subtract the difference $3-$2 of each matching $4 before the first _ (underscore) and print that value in $13. I think the awk will do that, but added comments. What I am not sure off is how to add a line or lines that will add sum each matching $13 value and put it in... (2 Replies)
Discussion started by: cmccabe
2 Replies

2. Red Hat

Difference between %install and %files section in rpm building ?

Hello, I am just a newbie and have very recently started building rpms, i build a very simple rpm that packaged 3 files and everything worked very smoothly. However to be very honest i am not very much clear with what is the difference between %install and %files section. I mean like we... (0 Replies)
Discussion started by: Rohit Bhanot
0 Replies

3. UNIX for Dummies Questions & Answers

Difference between normal Execute permission and GUID

Hi, Any can explain the difference between the normal execute permission for the file and GUID of the file. Since the normal execute permission has right to execute file why there is need of providing GUID for the same file. Also share some examples for SUID and SGID programs. Regards... (3 Replies)
Discussion started by: ksgnathan
3 Replies

4. Programming

Difference between system calls and normal functions in C

hello all, i'm a beginner in linux programming. I need to know what is the difference between system calls and normal functions like fopen, fread etc in C?Also how to set permissions by using open system call? (11 Replies)
Discussion started by: aarathy
11 Replies

5. Programming

how to link without using ld -rpath

Hello, I'm tryign to compile a sample code which uses OTL(Oracle, Odbc and DB2-CLI Template Library Programmer's Guide). I get this error while compiling the source file: $ g++ foo.cpp -o foo -I /tmp/ -I$ORACLE_HOME/rdbms/demo -I$ORACLE_HOME/rdbms/public -L$ORACLE_HOME/lib/ -lclntsh... (0 Replies)
Discussion started by: xyzt
0 Replies

6. Programming

Linking problem while linking to shared library

Hi I'm getting ld: fatal: option -h and building a dynamic executable are incompatible ld: fatal: Flags processing errors When I run ld -shared -L/usr/dt/lib -lDtSvc -o builtin.so Workspace.o after running gcc -fPIC -I/usr/X11R6/include -I/usr/dt/include -c Workspace.c I'm... (6 Replies)
Discussion started by: laho
6 Replies

7. UNIX for Dummies Questions & Answers

Any difference between the CLI of Mac OS X and normal UNIX?

Any? (11 Replies)
Discussion started by: edward
11 Replies
Login or Register to Ask a Question
libdl(3LIB)							Interface Libraries						       libdl(3LIB)

NAME
libdl - dynamic linking library SYNOPSIS
cc [ flag... ] file... -ldl [ library... ] DESCRIPTION
Historically, functions in libdl provided for dynamic linking support. This functionality now resides in libc(3LIB). This library is maintained to provide backward compatibility for both runtime and compilation environments. The shared object is imple- mented as a filter on the runtime linker. See ld.so.1(1). New application development need not specify -ldl. INTERFACES
The shared object libdl.so.1 provides the following public interfaces. See Intro(3) for additional information on shared object interfaces. dladdr dladdr1 dlclose dldump dlerror dlinfo dlmopen dlopen dlsym FILES
/lib/libdl.so.1 shared object /lib/64/libdl.so.1 64-bit shared object ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsl (32-bit) | +-----------------------------+-----------------------------+ | |SUNWcslx (64-bit) | +-----------------------------+-----------------------------+ |MT-Level |Safe | +-----------------------------+-----------------------------+ SEE ALSO
ld.so.1(1), pvs(1), Intro(3), libc(3LIB), attributes(5) SunOS 5.11 24 Mar 2004 libdl(3LIB)