Skip to content

Commit ae608ea

Browse files
ffontainethiagomacieira
authored andcommitted
Fix static compilation of json2cbor
json2cbor depends on cjson so tools/json2cbor/json2cbor.o must be before -lcjson Signed-off-by: Fabrice Fontaine <[email protected]>
1 parent 5f0078c commit ae608ea

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
@@ -115,7 +115,7 @@ bin/cbordump: $(CBORDUMP_SOURCES:.c=.o) lib/libtinycbor.a
115115

116116
bin/json2cbor: $(JSON2CBOR_SOURCES:.c=.o) lib/libtinycbor.a
117117
@$(MKDIR) -p bin
118-
$(CC) -o $@ $(LDFLAGS) $(LDFLAGS_CJSON) $^ $(LDLIBS) -lm
118+
$(CC) -o $@ $(LDFLAGS) $^ $(LDFLAGS_CJSON) $(LDLIBS) -lm
119119

120120
tinycbor.pc: tinycbor.pc.in
121121
$(SED) > $@ < $< \

0 commit comments

Comments
 (0)