1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-17 04:44:10 +02:00
openwrt-packages/utils/mmc-utils/patches/0000-properly-set-fortify-source-in-makefile.patch
Michael Heimpold 51a7d7850d mmc-utils: update to latest upstream revision
This also requires updating our patch for fortify-ing.
We now also pass the version as define during compilation.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2023-10-03 20:39:45 +02:00

11 lines
286 B
Diff

--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
CC ?= gcc
GIT_VERSION := "$(shell git describe --abbrev=6 --always --tags)"
-AM_CFLAGS = -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 \
+AM_CFLAGS = -D_FILE_OFFSET_BITS=64 \
-DVERSION=\"$(GIT_VERSION)\"
CFLAGS ?= -g -O2
objects = \