From 96ef5ca022ffc96171a9ca2299caf357047c44b8 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Thu, 11 Jul 2013 21:33:07 +0200 Subject: [PATCH] Fix duplicate object files during linking Otherwise the makefile attempts to link the debugging version of ext_svr two times. --- ert_linux/ert_linux.tmf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ert_linux/ert_linux.tmf b/ert_linux/ert_linux.tmf index 96cae9f..8454d28 100644 --- a/ert_linux/ert_linux.tmf +++ b/ert_linux/ert_linux.tmf @@ -398,7 +398,7 @@ USER_OBJS = $(addsuffix .o, $(basename $(USER_SRCS))) LOCAL_USER_OBJS = $(notdir $(USER_OBJS)) OBJS = $(addsuffix .o, $(basename $(SRCS))) $(USER_OBJS) -LINK_OBJS = $(addsuffix .o, $(basename $(SRCS))) $(LOCAL_USER_OBJS) +LINK_OBJS = $(sort $(addsuffix .o, $(basename $(SRCS))) $(LOCAL_USER_OBJS)) SHARED_SRC := $(wildcard $(SHARED_SRC)) SHARED_OBJS_NO_PATH = $(addsuffix .o, $(basename $(notdir $(SHARED_SRC)))) -- 2.39.2