08-26-2009
How to change a Makefile from building static library to shared library?
Hi:
I have a library that it only offers Makefile for building static library. It built libxxx.a file. How do I in any way build a shared library? (either changin the Makefile or direct script or command to build shared library)
Thanks.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I'm trying to build an archive library using the following script. It builds fine on 32-bit architectures, but when I try to build on a computer with 64-bit architecture I get this error message: /usr/bin/ld: warning: i386 architecture of input file `../lpdlib/lpdlib_byteswapio.a(system.o)' is... (1 Reply)
Discussion started by: echorak
1 Replies
2. Programming
I'm having trouble with my makefile, I'm trying to code a shared library to be used by another program
*EDIT* Found the solution:
CC = g++
MODULES= readconfig.o ReadConfigLib.o
OBJECTS=
RCLOBJECTS= ReadConfigLib.cpp readconfig.cpp configDefinitions.h readconfig.h ReadConfigLib.h... (0 Replies)
Discussion started by: james2432
0 Replies
3. Programming
Hi,
The following is my Makefile, I wanted to add a staic library named libtimer.a. I'm using the following Makefile. Please let me know how to add this static library:
Makefile:-
It produces "usbserial" executable.
Thanks,
S (1 Reply)
Discussion started by: suryaemlinux
1 Replies
4. Linux
I have some static library(libxxx.a libyyy.a).
And I want to generate my library(libzzz.a), libzzz.a will use libxxx.a and libyyy.a
I wan't my application only use libzzz.a, (means libzzz.a had include libxxx.a, libyyy.a), how can I do that? Thank you.
example:
I have zzz.c.
I do ... (4 Replies)
Discussion started by: freemagic
4 Replies
5. Programming
I am having a devil of a time with a very simple make file. The program needs two shared and one static library. If I link the shared libraries only like below the mysql test app works
... (1 Reply)
Discussion started by: jadsys
1 Replies
6. Programming
I'm writing a program which uses curl to be run on Linux PCs which will be used by a number of different users. I cannot make the users all install curl on their individual machines, so I have tried to link curl in statically, rather than using libcurl.so. I downloaded the source and created a... (8 Replies)
Discussion started by: BrandonShw
8 Replies
7. UNIX for Dummies Questions & Answers
Hello
Please what does mean shared static library and LD-Preload?
Thank you (3 Replies)
Discussion started by: chercheur857
3 Replies
8. Programming
Hello.
I am new to this forum and I would like to ask for advice about low level POSIX programming.
I have to implement a POSIX compliant C shared library.
A file will have some variables and the shared library will have some functions which need those variables.
There is one special... (5 Replies)
Discussion started by: iamjag
5 Replies
9. HP-UX
I have solved this but now cannot recall the syntax. I want to strip or change the hard wired library paths on binaries I download from a repository. I do not have root and just want a personal install, but would rather not build every tool. I even posted the solution here once for others, but... (2 Replies)
Discussion started by: DGPickett
2 Replies
10. AIX
I'm trying to install libiconv to AIX 7.1 from an rpm off of the perzl site. The rpm appears to install but I get this error message.
add shr4.o shared members from /usr/lib/libiconv.a to /opt/freeware/lib/libiconv.a
add shr.o shared members from /usr/lib/libiconv.a to ... (5 Replies)
Discussion started by: kneemoe
5 Replies
LEARN ABOUT REDHAT
uuid-config
UUID-CONFIG(1) Universally Unique Identifier UUID-CONFIG(1)
NAME
uuid-config - OSSP uuid API build utility
VERSION
OSSP uuid 1.6.2 (04-Jul-2008)
SYNOPSIS
uuid-config [--help] [--version] [--all] [--prefix] [--exec-prefix] [--bindir] [--libdir] [--includedir] [--mandir] [--datadir] [--acdir]
[--cflags] [--ldflags] [--libs]
DESCRIPTION
The uuid-config program is a little helper utility for easy configuring and building applications based on the uuid(3) library. It can be
used to query the C compiler and linker flags which are required to correctly compile and link the application against the uuid(3) library.
OPTIONS
uuid-config accepts the following options:
--help
Prints the short usage information.
--version
Prints the version number and date of the installed uuid(3) library.
--all
Forces the output of all flags, that is, including extra flags which are not OSSP uuid specific.
--prefix
Prints the installation prefix of architecture independent files
--exec-prefix
Prints the installation prefix of architecture dependent files.
--bindir
Prints the installation directory of binaries.
--libdir
Prints the installation directory of libraries.
--includedir
Prints the installation directory of include headers.
--mandir
Prints the installation directory of manual pages.
--datadir
Prints the installation directory of shared data.
--acdir
Prints the installation directory of autoconf data.
--cflags
Prints the C compiler flags which are needed to compile the uuid(3)-based application. The output is usually added to the CFLAGS
uuidiable of the applications Makefile.
--ldflags
Prints the linker flags (-L) which are needed to link the application with the uuid(3) library. The output is usually added to the
LDFLAGS uuidiable of the applications Makefile.
--libs
Prints the library flags (-l) which are needed to link the application with the C uuid(3) library. The output is usually added to the
LIBS uuidiable of the applications Makefile.
EXAMPLE
CC = cc
CFLAGS = -O `uuid-config --cflags`
LDFLAGS = `uuid-config --ldflags`
LIBS = -lm `uuid-config --libs`
all: foo
foo: foo.o
$(CC) $(LDFLAGS) -o foo foo.o $(LIBS)
foo.o: foo.c
$(CC) $(CFLAGS) -c foo.c
SEE ALSO
uuid(3), uuid(1), OSSP::uuid(3).
04-Jul-2008 OSSP uuid 1.6.2 UUID-CONFIG(1)