libtool
[Top][All Lists]
Advanced

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

-dlopen library change does not cause main program relink


From: Kevin P. Fleming
Subject: -dlopen library change does not cause main program relink
Date: Wed, 22 Oct 2003 08:43:31 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20030925

Here's a hard one to fix:

My program has about 30 plugin modules. The Makefile.am provides -dlopen <modulepath> for each one, so that if the user chooses to disable shared libraries, the plugins will be preloaded into the (static) program binary. This works fine.

However, the generated Makefile does not have a dependency on src/handlers/unpack.la for src/nALFS, so if a make is done, then the src/handlers/unpack.c file is modified, a subsequent make causes src/handlers/unpack.la to be rebuilt but src/nALFS _is not relinked_. Relinking would not be necessary if the plugin module was being built as a shared library, but when it's not, relinking the binary(ies) using it is mandatory.

Granted, this only affects developers and not really end users all that much, and a "make clean" also takes care of it. It'd be nice if this link dependency could be translated into the Makefile in some way.





reply via email to

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