HomeFreeBSD

Fix build with read-only source dir after 83c20b8a2da0

Description

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)

Details

Provenance
arichardsonAuthored on Feb 3 2021, 9:29 AM
Parents
rGb20f358a2de4: tests/sys/kern/crc32: Check for SSE4.2 before using it
Branches
Unknown
Tags
Unknown