Skip to content

Commit 68953fd

Browse files
authored
export GIT_COMMIT=$(cat src/runtime/version) in Makefile (AppImage#104)
Closes AppImage#103
1 parent fdad19d commit 68953fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/runtime/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
GIT_COMMIT := $(shell cat version)
12
CC = gcc
2-
CFLAGS = -std=gnu99 -Os -D_FILE_OFFSET_BITS=64 -DGIT_COMMIT=\"${GIT_COMMIT}\" -T data_sections.ld -ffunction-sections -fdata-sections -Wl,--gc-sections -static -Wall -Werror
3+
CFLAGS = -std=gnu99 -Os -D_FILE_OFFSET_BITS=64 -DGIT_COMMIT=\"$(GIT_COMMIT)\" -T data_sections.ld -ffunction-sections -fdata-sections -Wl,--gc-sections -static -Wall -Werror
34
LIBS = -lsquashfuse -lsquashfuse_ll -lzstd -lz -lfuse3
45

56
all: runtime

0 commit comments

Comments
 (0)