c - Makefile.am commands to override library functions -
i have open source project relies on open source project (let's call other project x). both written in c. i've had hack pieces of x multi-threading work. causes issues when trying package code distribution. make things easier, i've included entirety of x within mine along few little hacks i've made.
i'd more sophisticated in order keep improved functionality of x (it has frequent releases , mine not) without having repackage whole project (with hacks) within project again each time x has release.
there 3 or 4 functions in need override. can follow going on in ibm tutorial, how can modify makefile.am generate makefile changes suggested in article? summarize, article suggests writing own functions same signatures ones want override (in file called libfuncs.c) , add following 'libs' target makefile:
all: libs setresgid-tester libs: libfuncs.c gcc -shared -wl,-soname,libfuncs.so.1 -o libfuncs.so.1.0 libfuncs.c ln -s libfuncs.so.1.0 libfuncs.so.1 ln -s libfuncs.so.1 libfuncs.so setresgid-tester: setresgid-tester.c gcc -o setresgid-tester setresgid-tester.c
all of makes sense me. need do, however, have 'libs' target created me autotools. have makefile.am works right now. how modify produce desired results above? difficult find in autotools documentation, may not have known for.
i'm happy provide more details if helpful. in advance.
Comments
Post a Comment