Using libltdl
Now let's move on to a discussion of Libtool's ltdl library. Once again, I'm going to have to add some functionality to the Jupiter project in order to illustrate these concepts. The goal here is to create a plug-in interface that the jupiter
program can use to modify output based on end-user policy choices.
Necessary Infrastructure
Currently, jupiter
prints Hello, from jupiter! (Actually, the name printed is more likely, at this point, to be a long, ugly path containing some Libtool directory garbage and some derivation of the name jupiter, but just pretend it prints jupiter for now.) We're going to add an additional parameter named salutation
to the common static library method, print_routine
. This parameter will also be of type ...
Get Autotools now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.