uClinux may not have dhfcn.h et.al.
Andrew Cagney <[email protected]> Fri, 4 Dec 2015 10:45:14 -0500
| Newsgroups | gmane.comp.mozilla.devel.nspr |
|---|---|
| Message-ID | <CAJeAr6sUL45+gEu_CU_Zu9Y4CX2pETnq1Wwq-QeUWGL=Xp4-ww@mail.gmail.com> |
Hi, uClinux (which I'm treating as a linux variant) can be configured without shared library support (no dl*() and no dlfcn.h). The patch below (hopefully attached): - tweaks autoconf to define HAVE_DLFCN_H when "dlfcn.h" is present (I've not otherwise changed that somewhat unusual logic) - for linux, only enable DLL et.al. when "dlfcn.h" is present - #ifdef'd code that used dlfcn.h and/or dl*() unconditionally I've tried to be conservative here - a more aggressive version would throw out much of the hard-wired unix dl* configuration and just rely on autoconf. Andrew BTW, beyond a successful build, is there anything I should be looking for when running "make" in pr/tests (on a native Linux system, say)?