svn commit: r434801 - in head/emulators/unicorn: . files

Jan Beich jbeich at freebsd.org
Sat Feb 25 13:55:55 UTC 2017


Antoine Brodin <antoine at FreeBSD.org> writes:

> + CFLAGS += -L ../../ -I ../../include
> +-CFLAGS += -L ../../cmocka/src -I ../../cmocka/include
> ++CFLAGS += -L $(PREFIX)/lib -I $(PREFIX)/include

Other ports are installed under LOCALBASE, not PREFIX.

  $ pkg install cmocka gmake python27
  $ make clean test PREFIX=/tmp/test -C /usr/ports/emulators/unicorn
  [...]
  ===>   unicorn-1.0 depends on package: cmocka>0 - found
  gmake[1]: Entering directory '/wrkdirs/usr/ports/emulators/unicorn/work/unicorn-1.0/tests/unit'
  cc -O0 -pipe  -fstack-protector -fno-strict-aliasing -Wall -Werror -Wno-unused-function -g -L ../../-I ../../include -L /tmp/test/lib -I /tmp/test/include   -fstack-protector  test_x86_soft_paging.c  -lcmocka -lunicorn -o test_x86_soft_paging
  In file included from test_x86_soft_paging.c:1:
  ./unicorn_test.h:7:10: fatal error: 'cmocka.h' file not found
  #include <cmocka.h>
           ^
  1 error generated.


More information about the svn-ports-head mailing list