Jan Vroonhof <vroonhof(a)math.ethz.ch> writes in xemacs-beta(a)xemacs.org:
I was playing with the new dl code on my debian hamm system at home
which must be a fairly typical glibc2 linux and it only worked when I
hand patched the makefile to add a "-Wl,-E" to the link flags.
What happens when you feed `--with-shlib=yes' to configure?
I guess this should have been configure's job. I did not
investigate
further.
Yup. I've run one test and autodetection didn't work. It looks like
it might be a logic error in configure because -ldl is being detected
and added to the link command, but ld_dynamic_link_flags isn't getting
set correctly. It appears to work when I explicitly add --with-shlib.