Christoph Biedl wrote...
* Integration into the auto* eco-system: Hours and hours, and still no avail.
Let me explain:
+noinst_LTLIBRARIES = libpreload.la + +libpreload_la_SOURCES = \ + getnameinfo-preload.c + +libpreload_la_LDFLAGS = \ + -module -export-dynamic -avoid-version -shared +
This should create a libpreload.so but does not.
# starting up test-server ... +if [ "$(uname)" = 'Linux' ] ; then + if [ "$LD_PRELOAD" ] ; then + export LD_PRELOAD="$PWD/getnameinfo-preload.o $LD_PRELOAD" +else + export LD_PRELOAD="$PWD/getnameinfo-preload.o" + fi +fi ./T-ngircd${id} -n -f ${srcdir}/ngircd-test${id}.conf $* \
This should add the created object to LD_PRELOAD. What's actually happening: | ERROR: ld.so: object '(...)/src/testsuite/getnameinfo-preload.o' from LD_PRELOAD cannot be preloaded: ignored. According to strace, the object is found and opened, but then rejected. The great frustration is also caused by the fact I could simply hack a cc invocation into the shell script. But that would undermine all the portability features auto* promises. Christoph