[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[UNIKRAFT/LIB-PCRE] Makefile.uk: Add -f argument to ln



From: gaulthier gain <gaulthier.gain@xxxxxxxxx>

During the creation of the "pcre_chartables.c" symlink, an error
can appear if the file already exists. This patch fixes this issue
by adding the -f option which removes existing destination files.

Signed-off-by: gaulthier gain <gaulthier.gain@xxxxxxxxx>
---
 Makefile.uk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.uk b/Makefile.uk
index fee51c8..d097ede 100644
--- a/Makefile.uk
+++ b/Makefile.uk
@@ -123,7 +123,7 @@ $(LIBPCRE_EXTRACTED)/config.status: $(LIBPCRE_BUILD)/.origin
 # Create pcre_chartables.c symlink
 $(LIBPCRE_EXTRACTED)/pcre_chartables.c: $(LIBPCRE_EXTRACTED)/config.status
        $(call verbose_cmd,LINK,libpcre: $(notdir $@), \
-               cd $(LIBPCRE_EXTRACTED) && ln -s pcre_chartables.c.dist $@)
+               cd $(LIBPCRE_EXTRACTED) && ln -fs pcre_chartables.c.dist $@)
 
 LIBPCRE_PREPARED_DEPS = \
        $(LIBPCRE_EXTRACTED)/config.status \
-- 
2.17.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.