build: Force-create pasta symlink

If you run the build several times it will fail unnecessarily with:

  ln -s passt pasta
  ln: failed to create symbolic link 'pasta': File exists
  make: *** [Makefile:134: pasta] Error 1

Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Richard W.M. Jones 2022-11-17 18:49:32 +00:00 committed by Stefano Brivio
parent b06014a6b2
commit 4d099c85df

View file

@ -139,7 +139,7 @@ passt.avx2: $(PASST_SRCS) $(HEADERS)
passt.avx2: passt passt.avx2: passt
pasta.avx2 pasta.1 pasta: pasta%: passt% pasta.avx2 pasta.1 pasta: pasta%: passt%
ln -s $< $@ ln -sf $< $@
qrap: $(QRAP_SRCS) passt.h qrap: $(QRAP_SRCS) passt.h
$(CC) $(FLAGS) $(CFLAGS) $(CPPFLAGS) $(QRAP_SRCS) -o qrap $(LDFLAGS) $(CC) $(FLAGS) $(CFLAGS) $(CPPFLAGS) $(QRAP_SRCS) -o qrap $(LDFLAGS)