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

[UNIKRAFT/LIB-PCRE V2] Makefile.uk: Update symbolic link generation



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.

Changes v2:
- In addition, we also updated the label with "HOSTLN".

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

diff --git a/Makefile.uk b/Makefile.uk
index fee51c8..0444c7d 100644
--- a/Makefile.uk
+++ b/Makefile.uk
@@ -122,8 +122,8 @@ $(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 $@)
+       $(call verbose_cmd,HOSTLN,libpcre: $(notdir $@), \
+               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®.