From 21e1ac205ed3b9e222bb319eff5b48931d9c9897 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Thu, 25 Jun 2015 08:45:12 +0200 Subject: [PATCH] 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. --- programs/Makefile | 4 ++-- tests/Makefile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/programs/Makefile b/programs/Makefile index ee78a6537..b23b11fe4 100644 --- a/programs/Makefile +++ b/programs/Makefile @@ -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 diff --git a/tests/Makefile b/tests/Makefile index b53a7c32b..ccaacfc8f 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -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