05-23-2007
Set the SONAME of the library to it's full path
as in $(CC) -shared -W1,-soname,/myhome/lib/libfoo.so foo.o -o /myhome/libfoo.so
then when an application links against it the full path will be recorded.
confirm with ldd.
Also you may want to look at -rpath
10 More Discussions You Might Find Interesting
1. Programming
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
2. Programming
Hai Friends
how to use dynamic library linking in gcc. I have create the library files and placed it in /lib directory and my program should refer to that library dynamically.. How do i do that..
Thanks in advance (0 Replies)
Discussion started by: collins
0 Replies
3. Programming
Forgive as I am new to the gcc compiler and to linux. I am trying to compile/link a program for the first time and am receiving an error complaining about the crtbegin.o file. I use the -v option and get the following:
Using built-in specs.
Configured with: ../configure --enable-threads=posix... (1 Reply)
Discussion started by: jbeauchamp
1 Replies
4. Programming
hello,
friends
i would like to know what is the differnce between static library and dynamic library?
How will u create them and what are there uses? (1 Reply)
Discussion started by: vijaya2006
1 Replies
5. Programming
i will tell my problem with example:
if i have a folder name called sree1.7.3
i know the starting name say sree and also path say /usr/lib.
so i want the folder name.
and how can i link this folder in makefile
thank u
sree (1 Reply)
Discussion started by: phani_sree
1 Replies
6. Solaris
at the end of the compilation in solaris 9. it is showing link error.
like.....
ld: fatal: library -lgthread-2.0 not found
failed to create the binary
the library is in /usr/lib and in /usr/local/lib the lib file is present
--->libgthread.2.0.so ......etc
if i remove... (3 Replies)
Discussion started by: biswajithit
3 Replies
7. UNIX for Dummies Questions & Answers
how would i link 2 files together?
is it the same as copying? (1 Reply)
Discussion started by: trob
1 Replies
8. UNIX for Advanced & Expert Users
I have a file that reads File (X.txt)
Contents of record 1:
rdrDESTINATION_ADDRESS (String) "91 971502573813"
rdrDESTINATION_IMSI (String) "000000000000000"
rdrORIGINATING_ADDRESS (String) "d0 movies"
rdrORIGINATING_IMSI (String) "000000000000000"
rdrTRAFFIC_EVENT_TIME... (0 Replies)
Discussion started by: magedfawzy
0 Replies
9. Programming
Hey, i cant seem to find #include<sqlite3> in the libraries, even after installing sqlite3 in linux. how do i solve this problem (1 Reply)
Discussion started by: gregarion
1 Replies
10. Programming
I have a C binary file(.so as extension) which is delivered by a product.
How do i use this functionalities of this .so file in my C program?
How can in link the .so to my C program? (1 Reply)
Discussion started by: vkca
1 Replies
LEARN ABOUT DEBIAN
gpt_build_config
GPT_BUILD_CONFIG(8) User Contributed Perl Documentation GPT_BUILD_CONFIG(8)
NAME
gpt_build_config - Returns a minimized list of ldflags from a list of globus packages and external libraries.
SYNOPSIS
gpt_build_config -src <source metadata file> -f <globus_flavor_name> -link [static|shared]
DESCRIPTION
gpt_build_config creates a file in it's current directory named gpt_build_temp.sh that contains a list of necessary flags assembled from
the build environment metadata of the packages on which the source metadata depends. This scanning is done recursively to cover the entire
dependency tree. This script was initially inspired by the shell script gnome_config.
LINK ORDER
The flag list returned by gpt_build_config is assembled in dependent order. A dependency between two libraries occurs when one library
needs the symbols of another library in order to link correctly. For most linkers the library providing the symbols has to be linked after
the library that needs the symbols. For example, from the line:
-L/opt/Xpm/lib -lXpm -L/usr/lib/X11 -lXm -lX
gpt_build_config assumes that the library Xpm is dependent on Xm which in turn is dependent on X. In addition, gpt_build_config assumes
that Xpm is located in /opt/Xpm/lib and Xm and X are both located in /usr/lib/X11.
BUGS
Circular dependencies between libraries are not supported.
AUTHOR
Michael Bletzinger <mbletzin.ncsa.uiuc.edu> and Eric Blau <eblau.ncsa.uiuc.edu>
perl v5.14.2 2012-04-30 GPT_BUILD_CONFIG(8)