mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
build-aux: use GNU sed for syntax-check on FreeBSD
BSD sed(1) and GNU sed(1) syntax are not compatible, and as synax-check.mk uses the GNU flavor, set SED variable to 'gsed' by default. Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
4bb1a0e488
commit
28a5096d69
@ -28,7 +28,15 @@ ME := build-aux/syntax-check.mk
|
||||
# ignoring the module description.
|
||||
AWK ?= awk
|
||||
GREP ?= grep
|
||||
# FreeBSD (and probably some other OSes too) ships own version of sed(1), not
|
||||
# compatible with the GNU sed. GNU sed is available as gsed(1), so use this
|
||||
# instead
|
||||
UNAME := $(shell uname)
|
||||
ifeq ($(UNAME),FreeBSD)
|
||||
SED ?= gsed
|
||||
else
|
||||
SED ?= sed
|
||||
endif
|
||||
|
||||
# Helper variables.
|
||||
_empty =
|
||||
|
Loading…
Reference in New Issue
Block a user