commit de3baa35d3fa0abcd6e2e78b89be315085c13081
parent 5ff0d107222d7b63759bd01625a23d3cd1107795
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Tue, 31 Oct 2023 15:18:34 +0100
Update command compilation and link edition
Make sure that the pkg-config directive for the local library appears as
the first compiler flag to be used and the first library to be linked,
to ensure that headers and libraries are searched for first in the local
path. This is because the compiler and linker look for directories in
the left-to-right order in which the -I and -L options appear. So, to
force inclusion of local headers and link editing with the local version
of the library, the -I./src and -L./ directives must appear first when
compiling and linking.
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
@@ -84,18 +84,18 @@ HTRDR_OBJ = $(HTRDR_SRC:.c=.o)
HTRDR_DEP = $(HTRDR_SRC:.c=.d)
HTRDR_DPDC_CFLAGS =\
- $(RSYS_CFLAGS)\
$$($(PKG_CONFIG_LOCAL) $(PCFLAGS) --cflags htrdr-core)\
$(ATMOSPHERE_CFLAGS_$(ATMOSPHERE))\
$(COMBUSTION_CFLAGS_$(COMBUSTION))\
- $(PLANETO_CFLAGS_$(PLANETO))
+ $(PLANETO_CFLAGS_$(PLANETO))\
+ $(RSYS_CFLAGS)
HTRDR_DPDC_LIBS =\
- $(RSYS_LIBS)\
$$($(PKG_CONFIG_LOCAL) $(PCFLAGS) --libs htrdr-core)\
$(ATMOSPHERE_LIBS_$(ATMOSPHERE))\
$(COMBUSTION_LIBS_$(COMBUSTION))\
- $(PLANETO_LIBS_$(PLANETO))
+ $(PLANETO_LIBS_$(PLANETO))\
+ $(RSYS_LIBS)
HTRDR_DPDC_BUILD =\
build_core\