Makefile: Disallow undefined symbols in libgpg-error.
Needs ReviewPublic

Authored by haubi on Tue, Apr 30, 10:42 AM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

src/Makefile.am (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

Repository
rE libgpg-error
Lint
Lint Skipped
Unit
Unit Tests Skipped
haubi created this revision.Tue, Apr 30, 10:42 AM
haubi edited the summary of this revision. (Show Details)Tue, Apr 30, 10:45 AM
haubi edited the summary of this revision. (Show Details)Tue, Apr 30, 10:49 AM