summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2012-04-05 08:24:45 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2012-04-05 08:24:45 -0500
commita7926648dbc43150cdf0a4214783201b8b851d5a (patch)
tree0231aa5f9cc8a1f68b13cef3e5ae1fa2dc2b6ee9
parentAdd SYSCTL_NODE(_security,...,_bsd,...) (diff)
downloadrtems-libbsd-a7926648dbc43150cdf0a4214783201b8b851d5a.tar.bz2
link01 - Add list of undefined symbols
-rw-r--r--testsuite/link01/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/testsuite/link01/Makefile b/testsuite/link01/Makefile
index ea42c236..dd9e8e32 100644
--- a/testsuite/link01/Makefile
+++ b/testsuite/link01/Makefile
@@ -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