| 1 |
From: Ahmad Khalifa <[email protected]> |
| 2 |
Date: Fri, 15 Nov 2024 19:40:54 +0000 |
| 3 |
Forwarded: not-needed |
| 4 |
Subject: fix debug symbols missing in some binaries |
| 5 |
|
| 6 |
This does not fix all of them, but only mentioned ones |
| 7 |
|
| 8 |
--- a/util/bucts/Makefile |
| 9 |
+++ b/util/bucts/Makefile |
| 10 |
@@ -4,7 +4,7 @@ |
| 11 |
TARGET=bucts |
| 12 |
VERSION:=$(shell git describe) |
| 13 |
WERROR=-Werror |
| 14 |
-CFLAGS=-O2 -Wall -Wextra -Wshadow ${WERROR} |
| 15 |
+CFLAGS=-g -D_FORTIFY_SOURCE=2 -O2 -Wall -Wextra -Wshadow ${WERROR} |
| 16 |
|
| 17 |
ifeq ($(shell uname), FreeBSD) |
| 18 |
CFLAGS += -I/usr/local/include |
| 19 |
--- a/util/ectool/Makefile |
| 20 |
+++ b/util/ectool/Makefile |
| 21 |
@@ -2,7 +2,7 @@ |
| 22 |
|
| 23 |
CC ?= gcc |
| 24 |
WERROR=-Werror |
| 25 |
-CFLAGS = -O2 -Wall -Wextra -Wshadow $(WERROR) |
| 26 |
+CFLAGS = -g -D_FORTIFY_SOURCE=2 -O2 -Wall -Wextra -Wshadow $(WERROR) |
| 27 |
PROGRAM = ectool |
| 28 |
INSTALL ?= /usr/bin/env install |
| 29 |
PREFIX ?= /usr/local |
| 30 |
--- a/util/pmh7tool/Makefile |
| 31 |
+++ b/util/pmh7tool/Makefile |
| 32 |
@@ -1,7 +1,7 @@ |
| 33 |
## SPDX-License-Identifier: GPL-2.0-only |
| 34 |
|
| 35 |
CC = gcc |
| 36 |
-CFLAGS = -O2 -Wall -Wextra -Werror |
| 37 |
+CFLAGS = -g -D_FORTIFY_SOURCE=2 -O2 -Wall -Wextra -Werror |
| 38 |
PROGRAM = pmh7tool |
| 39 |
INSTALL = /usr/bin/env install |
| 40 |
PREFIX = /usr/local |