Undefined symbols unless -lintl is specified manually in LDFLAGS
This happens on macOS whenever I build from git (both the tag and HEAD) but does not happen if I use the release tarball. The reason is that building from git requires the Autotools dependencies to be present, which then leads the build to want to link to gettext's libintl even though I only declared the dependency for the sake of running autoreconf. If it is going to insist on linking to libintl, it should at least set the -lintl LDFLAG itself without manual intervention. But preferably, there would be a way to tell configure not to try to link to libintl at all even if it's there.
config.status: executing default-1 commands
==> make watch
CC watch.o
CC lib/fileutils.o
CC lib/strutils.o
CCLD watch
Undefined symbols for architecture x86_64:
"_libintl_bindtextdomain", referenced from:
_main in watch.o
"_libintl_gettext", referenced from:
_main in watch.o
_usage in watch.o
_close_stdout in fileutils.o
"_libintl_setlocale", referenced from:
_main in watch.o
"_libintl_textdomain", referenced from:
_main in watch.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [watch] Error 1
Edited by Craig Small