- Edit the Makefile:
- change CFLAGS from:
CFLAGS = -Wall -Werror -Wextrato:override CFLAGS += -Wall -Werror -Wextra
- change CFLAGS from:
- Run this script:
make re CFLAGS="-nodefaultlibs" 2>&1 | grep ": undefined reference to" | grep -v __ | awk 'NF>1{print $NF}' | sed "s/[\'\`]//g" | sort | uniq