automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

embeding a shared library into another one


From: PICCA Frédéric-Emmanuel
Subject: embeding a shared library into another one
Date: Sun, 7 Mar 2010 12:45:25 +0100

Hello

I am using the bullet project [1]

The author said that the best things to do is to statically link the libraries 
provided by their
projetc.

so I copy the bullet sources into my own project ans add a

configure.ac
AC_CONFIG_SUBDIRS(/path/to/bullet)

now I create my how library which use thie bullet libraries.

So I add for my library
AM_LDFLAGS = -version-info 0:0:0 \
        $(HKL_LIBS) \
        $(G3D_LIBS) \
        ./bullet/src/libbulletmath.la \
        ./bullet/src/libbulletcollision.la

lib_LTLIBRARIES = \
        libhkl3d.la

libhkl3d_la_SOURCES = \
        hkl3d.cpp

Now my problem is : I want to embed the code of bullet in my share library
that way A programm using my library just need to link agains my hkl3d library.
A sort of : link all .os object of bullet into my own library

How can I do this ?

thanks

Frederic

[1] http://bulletphysics.org/wordpress/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]