From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1521) id 434D53858437; Sat, 5 Nov 2022 03:51:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 434D53858437 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1667620286; bh=XJCs187W6cQNzXJ+h9i3BJ3KhglzHP70sMRqfUJVZao=; h=From:To:Subject:Date:From; b=a/5xj7VFvczho8LtIE0xkIRLX2OuWqhYZvqaIc7xAmf2gadxV0n9BfymjCJrgO6tU RzTmf/rlpJsSt/mz1X0Y2Fdbti06iILHk07ZpFiecMFIJ6ppeMOxpCYOGwnIkRjvUW gl2bs26I5Syr78EPZTCQwaHVygaFQ2n5pcXEjmBk= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Frysinger To: gdb-cvs@sourceware.org Subject: [binutils-gdb] sim: build: add SIM_HW_CFLAGS to top-level build too X-Act-Checkin: binutils-gdb X-Git-Author: Mike Frysinger X-Git-Refname: refs/heads/master X-Git-Oldrev: fc9c0bdce0ff2aee6215b29cc10330ebcb0df6b4 X-Git-Newrev: bfc96c1039d33b1ed0c8b2e1b6fb3859a693cfe9 Message-Id: <20221105035126.434D53858437@sourceware.org> Date: Sat, 5 Nov 2022 03:51:26 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dbfc96c1039d3= 3b1ed0c8b2e1b6fb3859a693cfe9 commit bfc96c1039d33b1ed0c8b2e1b6fb3859a693cfe9 Author: Mike Frysinger Date: Sat Nov 5 10:33:37 2022 +0700 sim: build: add SIM_HW_CFLAGS to top-level build too =20 This matches what we do with targets already. Diff: --- sim/Makefile.am | 2 ++ sim/Makefile.in | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sim/Makefile.am b/sim/Makefile.am index d8730f27698..7ea013ac196 100644 --- a/sim/Makefile.am +++ b/sim/Makefile.am @@ -46,10 +46,12 @@ AM_CPPFLAGS =3D \ -I$(srcroot)/include \ -I../bfd \ -I.. \ + $(SIM_HW_CFLAGS) \ $(SIM_INLINE) =20 AM_CPPFLAGS_FOR_BUILD =3D \ -I$(srcroot)/include \ + $(SIM_HW_CFLAGS) \ $(SIM_INLINE) COMPILE_FOR_BUILD =3D $(CC_FOR_BUILD) $(AM_CPPFLAGS_FOR_BUILD) $(CPPFLAGS_= FOR_BUILD) $(CFLAGS_FOR_BUILD) LINK_FOR_BUILD =3D $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD= ) -o $@ diff --git a/sim/Makefile.in b/sim/Makefile.in index 57c1fc034a0..06d5da1ecf5 100644 --- a/sim/Makefile.in +++ b/sim/Makefile.in @@ -924,9 +924,10 @@ MOSTLYCLEANFILES =3D core $(am__append_5) site-sim-con= fig.exp \ $(am__append_34) $(am__append_37) $(am__append_39) AM_CFLAGS =3D $(WERROR_CFLAGS) $(WARN_CFLAGS) AM_CPPFLAGS =3D $(INCGNU) -I$(srcroot)/include -I../bfd -I.. \ - $(SIM_INLINE) -I$(srcdir)/common -DSIM_COMMON_BUILD -AM_CPPFLAGS_FOR_BUILD =3D -I$(srcroot)/include $(SIM_INLINE) \ - -I$(srcdir)/common + $(SIM_HW_CFLAGS) $(SIM_INLINE) -I$(srcdir)/common \ + -DSIM_COMMON_BUILD +AM_CPPFLAGS_FOR_BUILD =3D -I$(srcroot)/include $(SIM_HW_CFLAGS) \ + $(SIM_INLINE) -I$(srcdir)/common COMPILE_FOR_BUILD =3D $(CC_FOR_BUILD) $(AM_CPPFLAGS_FOR_BUILD) $(CPPFLAGS_= FOR_BUILD) $(CFLAGS_FOR_BUILD) LINK_FOR_BUILD =3D $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD= ) -o $@ SIM_ALL_RECURSIVE_DEPS =3D common/libcommon.a $(am__append_2) \