Bug 185 - ./configure --disable-shared still builds shared objects
./configure --disable-shared still builds shared objects
Product: unbound
Classification: Unclassified
Component: server
Other Linux
: P2 normal
Assigned To: unbound team
Depends on:
  Show dependency treegraph
Reported: 2008-05-28 15:19 CEST by Martin Kraemer
Modified: 2008-06-02 14:14 CEST (History)
2 users (show)

See Also:

Pass --disable-shared to sub-configure (1.62 KB, patch)
2008-05-28 15:19 CEST, Martin Kraemer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Kraemer 2008-05-28 15:19:36 CEST
Created attachment 66 [details]
Pass --disable-shared to sub-configure

On a system that is capable of building shared objects but on which I do not want to use them, I tried to invoke configure with "--disable-shared --enable-static".
For the unbound commponent, configure accepted that (checking whether to build shared libs... no), but did not pass the switches to the subordinate configure's in ldns (patch to fix that is attached). 

Additionally, the unbound build still built a shared libunbound.so, and even linked unbound-host against the it. 

Manually modifying the libunbound.la (removing the shared lib refs) and rebuilding unbound-host helped.
Comment 1 Wouter Wijngaards 2008-06-02 14:14:04 CEST
Thank you for the bugreport and patch (AC_CONFIG_SUBDIRS is even neater as a solution). It is fixed in svn trunk r1103.

Best regards, Wouter