From: Michal Sojka Date: Thu, 11 Jul 2013 19:33:07 +0000 (+0200) Subject: Fix duplicate object files during linking X-Git-Url: http://rtime.felk.cvut.cz/gitweb/ert_linux.git/commitdiff_plain/96ef5ca022ffc96171a9ca2299caf357047c44b8 Fix duplicate object files during linking Otherwise the makefile attempts to link the debugging version of ext_svr two times. --- 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))))