Skip to content

Commit

Permalink
test/prefered: fix compiling problem
Browse files Browse the repository at this point in the history
There is problem when running "make test/prefered":

"
  CCLD     test/prefered
/usr/bin/ld: ./.libs/libnuma.so: undefined reference to `find_first'
collect2: error: ld returned 1 exit status
make: *** [Makefile:979: test/prefered] Error 1
"
Fixing it by modifying Makefile and perfered.c

Signed-off-by: Feng Tang <feng.tang@intel.com>
  • Loading branch information
ftang1 authored and andikleen committed Dec 9, 2021
1 parent dd2b394 commit 91a3fd4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ test_nodemap_LDADD = libnuma.la
test_pagesize_SOURCES = test/pagesize.c
test_pagesize_LDADD = libnuma.la

test_prefered_SOURCES = test/prefered.c
test_prefered_SOURCES = test/prefered.c util.c
test_prefered_LDADD = libnuma.la

test_randmap_SOURCES = test/randmap.c
Expand Down
4 changes: 4 additions & 0 deletions test/prefered.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

#define err(x) perror(x),exit(1)

void usage(void)
{
}

int main(void)
{
int max = numa_max_node();
Expand Down

0 comments on commit 91a3fd4

Please sign in to comment.