Skip to content

Commit

Permalink
Fix static compilation of json2cbor
Browse files Browse the repository at this point in the history
json2cbor depends on cjson so tools/json2cbor/json2cbor.o must be
before -lcjson

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  • Loading branch information
ffontaine authored and thiagomacieira committed Mar 6, 2017
1 parent 5f0078c commit ae608ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -115,7 +115,7 @@ bin/cbordump: $(CBORDUMP_SOURCES:.c=.o) lib/libtinycbor.a

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

tinycbor.pc: tinycbor.pc.in
$(SED) > $@ < $< \
Expand Down

0 comments on commit ae608ea

Please sign in to comment.