Skip to content

Commit afb254e

Browse files
authored
avoid CFLAGS being overwritten (#16)
* avoid CFLAGS being overwritten required flags should not go in CFLAGS * use SQUASHFS_MOUNT prefix
1 parent fac9478 commit afb254e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ bindir = $(exec_prefix)/bin
66

77
CFLAGS ?= -Os -Wall -Wpedantic
88
LDFLAGS ?= -Wl,--gc-sections,-s
9-
VERSION_FULL := $(shell cat VERSION)
10-
CFLAGS+=-DVERSION=\"$(VERSION_FULL)\"
11-
SQUASHFS_MOUNT_CFLAGS = -std=c99
9+
10+
SQUASHFS_MOUNT_VERSION := $(shell cat VERSION)
11+
SQUASHFS_MOUNT_CFLAGS = -std=c99 -DVERSION=\"$(SQUASHFS_MOUNT_VERSION)\"
1212
SQUASHFS_MOUNT_LDFLAGS = -lmount
1313

1414
all: squashfs-mount

0 commit comments

Comments
 (0)