]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cobol: Remove unnecesssary CPPFLAGS update and restore MacOS build
authorSimon Martin <simon@nasilyan.com>
Wed, 12 Mar 2025 08:09:35 +0000 (09:09 +0100)
committerSimon Martin <simon@nasilyan.com>
Wed, 12 Mar 2025 11:05:04 +0000 (12:05 +0100)
The build currently fails on MacOS even when the Cobol front-end and
libgcobol builds are disabled.

The problem is that gcc/cobol/Make-lang.in adds -Iinclude to CPPFLAGS,
which somehow makes clang unhappy about the include order:
  error: <cstddef> tried including <stddef.h> but didn't find libc++'s
  <stddef.h> header. This usually means that your header search paths
  are not configured properly.

It turns out that this addition is unnecessary: simply removing it fixes
the build on MacOS, without impacting the build x86_64-pc-linux-gnu when
configured with --enable-languages=default,cobol.

It feels like there might be more cleanup opportunities there, but they
can be taken care of later.

gcc/cobol/ChangeLog:

* Make-lang.in: Remove unnecessary CPPFLAGS update.

gcc/cobol/Make-lang.in

index cbb31d63c303ac951e847aaf4c1f6b50d4e561d7..9fa3b1cdfdb3df88fc520ced660049cd7b8eaa0c 100644 (file)
@@ -56,7 +56,6 @@ LIB_SOURCE ?= $(srcdir)/../libgcobol
 #
 CPPFLAGS =                                     \
  -std=c++14                                    \
- -Iinclude                                     \
  -I$(BINCLUDE)                                 \
  -I$(LIB_INCLUDE)                              \
  -DEXEC_LIB=\"$(prefix)/lib64\"                \