From 73a6ac1650373ab4e6d010bd39b63e6ec3aade12 Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Fri, 4 Oct 2024 20:07:03 +0100 Subject: [PATCH] defs.mak.in: Remove -I. from default compiler options This can only cause trouble being a global default setting. All project include files are qualified with a path prefix to help disambiguate duplication of header file names to effectively provide a namespace. When removing it nothing seemed break. Maybe more configurations should be tested. They were all ok. --- scripts/defs.mak.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/defs.mak.in b/scripts/defs.mak.in index 20a6eaf1..5fb1127a 100755 --- a/scripts/defs.mak.in +++ b/scripts/defs.mak.in @@ -83,7 +83,7 @@ CC = @CC@ CPP = @CPP@ CXX = @CXX@ -CPPFLAGS = -I. -I${MAGICDIR} @CPPFLAGS@ +CPPFLAGS = -I${MAGICDIR} @CPPFLAGS@ DFLAGS = @extra_defs@ @stub_defs@ @DEFS@ -DMAGIC_VERSION=\"${MAGIC_VERSION}\" -DMAGIC_REVISION=\"${MAGIC_REVISION}\" -DMAGIC_COMMIT=\"${MAGIC_COMMIT}\" -DGCORE=\"@GCORE@\" DFLAGS += -DSHDLIB_EXT=\"@SHDLIB_EXT@\" -DNDEBUG DFLAGS_NOSTUB = @extra_defs@ @DEFS@ -DGCORE=\"@GCORE@\"