From: Eli Zaretskii <eliz@gnu.org>
To: Joel Brobecker <brobecker@adacore.com>
Cc: gdb-patches@sourceware.org
Subject: Building GDB 15.0.91 on MinGW: CPPFLAGS
Date: Thu, 06 Jun 2024 23:16:31 +0300 [thread overview]
Message-ID: <861q59hlnk.fsf@gnu.org> (raw)
In-Reply-To: <20240601155907.B796C81691@takamaka.gnat.com> (message from Joel Brobecker on Sat, 1 Jun 2024 08:59:07 -0700 (PDT))
> From: Joel Brobecker <brobecker@adacore.com>
> Date: Sat, 1 Jun 2024 08:59:07 -0700 (PDT)
> X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, DKIM_SIGNED,
> DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,
> SPF_PASS, TXREP,
> T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
>
> Hello,
>
> I have just finished creating the gdb-15.0.91 pre-release.
> It is available for download at the following location:
>
> https://sourceware.org/pub/gdb/snapshots/branch/gdb-15.0.91.tar.xz
>
> A gzip'ed version is also available: gdb-15.0.91.tar.gz.
>
> Please give it a test if you can and report any problems you might find.
I'm trying to build this pretest, and I need help with setting
non-standard CPPFLAGS. (I need that to specify the
D__USE_MINGW_ANSI_STDIO=1 preprocessor option, because libctf uses the
%z format which needs that.)
I thought it was enough to specify CPPFLAGS in the top-level configure
command:
CFLAGS='-O2 -gdwarf-4 -g3' CXXFLAGS='-O2 -gdwarf-4 -g3' CPPFLAGS='-D__USE_MINGW_ANSI_STDIO=1' ./configure ...
However, it sounds like this is not working, because "make V=1"
doesn't show the option on the GCC command line. Here's an example:
libtool: compile: gcc -DHAVE_CONFIG_H -I. -D_GNU_SOURCE -I. -I./../include -I./../bfd -I../bfd -DNOBFD=0 -Id:/usr/include -std=gnu99 -Wall -W -Wall -Wno-narrowing -Wwrite-strings -Wmissing-format-attribute -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -pedantic -Wno-long-long -O2 -gdwarf-4 -g3 -MT libctf_la-ctf-archive.lo -MD -MP -MF .deps/libctf_la-ctf-archive.Tpo -c ctf-archive.c -o libctf_la-ctf-archive.o
Note that CFLAGS I specified to the top-level configure _are_ used.
Why doesn't the same happen with CPPFLAGS? Is that some libtool trick
or something? I do see in top-level Makefile this:
CPPFLAGS_FOR_BUILD = -D__USE_MINGW_ANSI_STDIO=1
PLEASE HELP, I cannot move on without unlocking this mystery. (And
yes, there are other issues with this build, so I do have more work on
it.)
TIA
next prev parent reply other threads:[~2024-06-06 20:16 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-01 15:59 GDB 15.0.91 available for testing Joel Brobecker
2024-06-06 20:16 ` Eli Zaretskii [this message]
2024-06-07 12:21 ` Building GDB 15.0.91 on MinGW: CPPFLAGS and libctf Eli Zaretskii
[not found] ` <87r0d8k0gc.fsf@tromey.com>
2024-06-07 19:56 ` Eli Zaretskii
2024-06-07 21:39 ` Tom Tromey
2024-06-08 6:10 ` Eli Zaretskii
2024-06-08 7:54 ` Eli Zaretskii
2024-06-06 20:20 ` Building GDB 15.0.91 on MinGW: gcore.c Eli Zaretskii
[not found] ` <87msnwk0du.fsf@tromey.com>
2024-06-08 7:25 ` Eli Zaretskii
2024-06-07 12:27 ` Building GDB 15.0.91 on MinGW: ui_out_emit_type<ui_out_type_tuple>::m_uiout Eli Zaretskii
[not found] ` <87ikykk07l.fsf@tromey.com>
2024-06-07 19:57 ` Eli Zaretskii
2024-06-07 12:34 ` Building GDB 15.0.91 on MinGW: libctf.la Eli Zaretskii
2024-06-08 7:56 ` Eli Zaretskii
2024-06-07 13:13 ` Building GDB 15.0.91 on MinGW: Problem with TUI Eli Zaretskii
[not found] ` <599928735.5136862.1717766505896@mail.yahoo.com>
2024-06-07 13:48 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=861q59hlnk.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).