Fix linking order with make

GNU ld cares about the order in which static libs are mentioned on the command
line: if A depends on B then A must com first.
This commit is contained in:
Manuel Pégourié-Gonnard 2015-06-25 08:45:12 +02:00
parent 0761733c1b
commit 21e1ac205e
2 changed files with 4 additions and 4 deletions

View file

@ -8,9 +8,9 @@ LDFLAGS ?=
LOCAL_CFLAGS = $(WARNING_CFLAGS) -I../include -D_FILE_OFFSET_BITS=64
LOCAL_LDFLAGS = -L../library \
-lmbedcrypto$(SHARED_SUFFIX) \
-lmbedtls$(SHARED_SUFFIX) \
-lmbedx509$(SHARED_SUFFIX) \
-lmbedtls$(SHARED_SUFFIX)
-lmbedcrypto$(SHARED_SUFFIX)
ifndef SHARED
DEP=../library/libmbedcrypto.a ../library/libmbedx509.a ../library/libmbedtls.a

View file

@ -8,9 +8,9 @@ LDFLAGS ?=
LOCAL_CFLAGS = $(WARNING_CFLAGS) -I../include -D_FILE_OFFSET_BITS=64
LOCAL_LDFLAGS = -L../library \
-lmbedcrypto$(SHARED_SUFFIX) \
-lmbedtls$(SHARED_SUFFIX) \
-lmbedx509$(SHARED_SUFFIX) \
-lmbedtls$(SHARED_SUFFIX)
-lmbedcrypto$(SHARED_SUFFIX)
ifndef SHARED
DEP=../library/libmbedcrypto.a ../library/libmbedx509.a ../library/libmbedtls.a