Avoid redundant linking against libtool convenience libraries. 20100626040502/pspp
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 26 Jun 2010 04:33:18 +0000 (21:33 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 26 Jun 2010 04:33:18 +0000 (21:33 -0700)
commit4afd608d61b469b07f6c149e87ba25fabef9909e
treee8a702f9ada5666ae4a6e702159dae16c41d216e
parent24ce3b8ab286d1460b4cfd65ba1e82c23ff40f2c
Avoid redundant linking against libtool convenience libraries.

Both libpspp.la and libpspp-core.la linked directly against libgl.la, and
the UI linked against both libpspp.la and libpspp-core.la.  This works fine
on ELF systems, but with Mach-O on Mac OS X it silently causes duplicate
symbols at runtime.  In particular there are two different copies of
rpl_optarg from libgl.la.  Different code sees different copies of these,
which causes a segfault at runtime whenever anyone invokes pspp with an
option that takes an argument.

Reported by Jeremy Lavergne <jeremy@lavergne.gotdns.org>, with debugging
assistance by Jeremy and by John Darrington.
src/automake.mk
tests/automake.mk