Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Feb 2017 13:55:54 +0000 (UTC)
From:      jbeich@freebsd.org (Jan Beich)
To:        antoine@FreeBSD.org, ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   Re: svn commit: r434801 - in head/emulators/unicorn: . files
Message-ID:  <20170225135554.952F63D90@freefall.freebsd.org>
In-Reply-To: <201702251309.v1PD9tQM048800@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Antoine Brodin <antoine@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170225135554.952F63D90>