Skip to content

Commit 78905c8

Browse files
Add the -f flag to ln, to force symlink creation
Otherwise, remaking ends with: ln: failed to create symbolic link 'libtinycbor.so': File exists ln: failed to create symbolic link 'libtinycbor.so.0': File exists Signed-off-by: Thiago Macieira <[email protected]>
1 parent 8dcde96 commit 78905c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ lib/libtinycbor.a: $(TINYCBOR_SOURCES:.c=.o)
134134
lib/libtinycbor.so: $(TINYCBOR_SOURCES:.c=.pic.o)
135135
@$(MKDIR) -p lib
136136
$(CC) -shared -Wl,-soname,libtinycbor.so.0 -o lib/libtinycbor.so.$(VERSION) $(LDFLAGS) $^
137-
cd lib ; ln -s libtinycbor.so.$(VERSION) libtinycbor.so ; ln -s libtinycbor.so.$(VERSION) libtinycbor.so.0
137+
cd lib ; ln -sf libtinycbor.so.$(VERSION) libtinycbor.so ; ln -sf libtinycbor.so.$(VERSION) libtinycbor.so.0
138138

139139
bin/cbordump: $(CBORDUMP_SOURCES:.c=.o) $(BINLIBRARY)
140140
@$(MKDIR) -p bin

0 commit comments

Comments
 (0)