use buildinfo for version information

This commit is contained in:
Vladislav Yarmak
2025-11-20 01:43:07 +02:00
parent d50d7a41f9
commit 158243ea14
4 changed files with 13 additions and 22 deletions
+2 -3
View File
@@ -1,9 +1,8 @@
PROGNAME = opera-proxy
OUTSUFFIX = bin/$(PROGNAME)
VERSION := $(shell git describe)
BUILDOPTS = -a -tags netgo -trimpath -asmflags -trimpath
LDFLAGS = -ldflags '-s -w -extldflags "-static" -X main.version=$(VERSION)'
LDFLAGS_NATIVE = -ldflags '-s -w -X main.version=$(VERSION)'
LDFLAGS = -ldflags '-s -w -extldflags "-static"'
LDFLAGS_NATIVE = -ldflags '-s -w'
NDK_CC_ARM = $(abspath ../../ndk-toolchain-arm/bin/arm-linux-androideabi-gcc)
NDK_CC_ARM64 = $(abspath ../../ndk-toolchain-arm64/bin/aarch64-linux-android21-clang)