link01 - Add list of undefined symbols

This commit is contained in:
Joel Sherrill 2012-04-05 08:24:45 -05:00
parent c4f90c7881
commit a7926648db

View File

@ -14,7 +14,7 @@ C_FILES = test.c
C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
AM_CPPFLAGS += -I $(INSTALL_BASE)/include
LINK_LIBS += $(INSTALL_BASE)/libbsd.a -Wl,-Map=jennifer.txt
LINK_LIBS += $(INSTALL_BASE)/libbsd.a -Wl,-r
include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
include $(RTEMS_CUSTOM)
@ -26,3 +26,6 @@ all: ${ARCH} $(PGM)
$(PGM): $(OBJS)
$(make-exe)
$(NM) $(PGM) | grep "U " >undefined.txt
@echo `cat undefined.txt | wc -l` symbols to resolve
@test `cat undefined.txt | wc -l` -ne 0 && exit 1