Page MenuHome GnuPG

Makefile: Disallow undefined symbols in libgpg-error.

Authored by haubi on Apr 30 2019, 10:42 AM.



src/ (libgpg_error_la_LDFLAGS): Always set -no-undefined.
(no_undefined): Drop Makefile variable.

The -no-undefined flag does tell libtool that the library to create does
not rely on undefined symbols by design, allowing libtool to create the
shared library even for platforms not supporting undefined symbols.
Beyond that, on platforms where supported, this allows libtool to add a
linker flag to complain about undefined symbols, to unhide them early
during development already.

Test Plan

Build on various platforms:

  • Linux, Win32: should not make a difference.
  • Cygwin: allows to create the shared library.
  • AIX, Solaris, sysv*, unixware*, SCO*: Additional linker flag to disallow undefined symbols.

Diff Detail

rE libgpg-error
Lint Skipped
Unit Tests Skipped