Changeset 10c59c7 in rtems-libbsd


Ignore:
Timestamp:
Apr 5, 2012, 7:01:54 PM (8 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, c1e05b9ea378b2971e3d7704779112b4bc4296da, freebsd-9.3, 4a77611a223ea883fb548679b516d326a020d447
Children:
74109fe
Parents:
c613894
git-author:
Joel Sherrill <joel.sherrill@…> (04/05/12 19:01:54)
git-committer:
Joel Sherrill <joel.sherrill@…> (04/05/12 19:03:07)
Message:

link01 - Produce undefined list from relocatable and link errors

This helps when tracking down how many undefined symbols there
are and where they were defined.

Location:
testsuite/link01
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • testsuite/link01/Makefile

    rc613894 r10c59c7  
    66
    77PGM=${ARCH}/link01.exe
     8PGM_R=${ARCH}/link01_r.exe
    89
    910# optional managers required
     
    1516
    1617AM_CPPFLAGS += -I $(INSTALL_BASE)/include
    17 LINK_LIBS += $(INSTALL_BASE)/libbsd.a -Wl,-r
     18LINK_LIBS += $(INSTALL_BASE)/libbsd.a ${REL_ARGS}
    1819
    1920include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
     
    2425CLEAN_ADDITIONS += undefined.txt
    2526
    26 all:    ${ARCH} $(PGM)
     27all:    ${ARCH} $(PGM_R) $(PGM)
     28        $(NM) $(PGM_R) | grep "U " >undefined.txt
     29        @echo `cat undefined.txt | wc -l` symbols to resolve
    2730
    2831$(PGM): $(OBJS)
    29         $(make-exe)
    30         $(NM) $(PGM) | grep "U " >undefined.txt
    31         @echo `cat undefined.txt | wc -l` symbols to resolve
    32         @test `cat undefined.txt | wc -l` -ne 0 && exit 1
     32        -$(make-exe)
     33
     34$(PGM_R): $(OBJS)
     35        $(MAKE) -f Makefile_ldr
Note: See TracChangeset for help on using the changeset viewer.