Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 1 | From 688f7103e08318edbd48cf830c0ab3a048761bbb Mon Sep 17 00:00:00 2001 |
| 2 | From: Adrian Herrera <adrian.herrera@arm.com> |
| 3 | Date: Thu, 03 Dec 2020 16:45:59 +0000 |
| 4 | Subject: [PATCH] util: m5term, fix LDFLAGS, standard make variables |
| 5 | |
| 6 | Enables build systems to provide necessary flags to build m5term. |
| 7 | Useful specially if a different linker is intended to be used. |
| 8 | |
| 9 | Change-Id: If7f867cc0965d6ad4627b5421e00a99cc3d64989 |
| 10 | Signed-off-by: Adrian Herrera <adrian.herrera@arm.com> |
| 11 | |
| 12 | Upstream-Status: Accepted [https://gem5-review.googlesource.com/c/public/gem5/+/38256] |
| 13 | Expected version: v20.2 |
| 14 | --- |
| 15 | |
| 16 | diff --git a/util/term/Makefile b/util/term/Makefile |
| 17 | index 658b961..4aa1c52 100644 |
| 18 | --- a/util/term/Makefile |
| 19 | +++ b/util/term/Makefile |
| 20 | @@ -24,12 +24,12 @@ |
| 21 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 22 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 23 | |
| 24 | -CCFLAGS= -g -O0 |
| 25 | +CFLAGS ?= -g -O0 |
| 26 | |
| 27 | default: m5term |
| 28 | |
| 29 | m5term: term.c |
| 30 | - $(CC) $(LFLAGS) -o $@ $^ |
| 31 | + $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS) |
| 32 | |
| 33 | install: m5term |
| 34 | $(SUDO) install -o root -m 555 m5term /usr/local/bin |