]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix build with read-only source dir after 83c20b8a2da0
authorAlex Richardson <arichardson@FreeBSD.org>
Wed, 3 Feb 2021 09:29:08 +0000 (09:29 +0000)
committerAlex Richardson <arichardson@FreeBSD.org>
Thu, 22 Apr 2021 09:41:20 +0000 (10:41 +0100)
commit4ee7ac8dc525d0253d90fef8b1882eb4cdef801c
treeab12998eb78688bb38020bbf89207dd018ec6011
parentb20f358a2de4fa442e8650f78187ad19764c7db8
Fix build with read-only source dir after 83c20b8a2da0

I changed the Makefile to use SRCS instead of LDADD, but since there is
still and absolute path to the source the .o file was created inside the
source directory instead of the build directory.
It would be nice if this was an error/warning by default, but for now just
fix this issue by using .PATH and the base name of the file.

Reported by: cy, peterj

(cherry picked from commit 8b820df156e065f48857dca89a89462074659e14)
tests/sys/kern/Makefile