Skip to content

Commit f58022d

Browse files
arschlesAaron Schlesinger
authored andcommitted
ref(Makefile): use LDFLAGS
and use ${} syntax in the Makefile
1 parent 695ea10 commit f58022d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ bootstrap:
3838
# the Docker environment. Other alternatives are cross-compiling, doing
3939
# the build as a `docker build`.
4040
build:
41-
${DEV_ENV_PREFIX} -e CGO_ENABLED=0 ${DEV_ENV_IMAGE} go build -a -installsuffix cgo -ldflags '-s' -o $(BINARY_DEST_DIR)/boot boot.go || exit 1
41+
${DEV_ENV_PREFIX} -e CGO_ENABLED=0 ${DEV_ENV_IMAGE} go build -a -installsuffix cgo -ldflags ${LDFLAGS} -o ${BINARY_DEST_DIR}/boot boot.go || exit 1
4242
@$(call check-static-binary,$(BINARY_DEST_DIR)/boot)
4343

4444
test:

0 commit comments

Comments
 (0)