Skip to content

Commit 0c36d88

Browse files
jmillikinmasahir0y
authored andcommitted
lib/raid6: Let $(UNROLL) rules work with macOS userland
Older versions of BSD awk are fussy about the order of '-v' and '-f' flags, and require a space after the flag name. This causes build failures on platforms with an old awk, such as macOS and NetBSD. Since GNU awk and modern versions of BSD awk (distributed with FreeBSD/OpenBSD) are fine with either form, the definition of 'cmd_unroll' can be trivially tweaked to let the lib/raid6 Makefile work with both old and new awk flag dialects. Signed-off-by: John Millikin <john@john-millikin.com> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
1 parent c0f975a commit 0c36d88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/raid6/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ endif
4848
endif
4949

5050
quiet_cmd_unroll = UNROLL $@
51-
cmd_unroll = $(AWK) -f$(srctree)/$(src)/unroll.awk -vN=$* < $< > $@
51+
cmd_unroll = $(AWK) -v N=$* -f $(srctree)/$(src)/unroll.awk < $< > $@
5252

5353
targets += int1.c int2.c int4.c int8.c int16.c int32.c
5454
$(obj)/int%.c: $(src)/int.uc $(src)/unroll.awk FORCE

0 commit comments

Comments
 (0)