File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 1
1
# PREFIX should be only writable by the root to avoid privilege escalation with launchd or sudo
2
2
PREFIX ?= /opt/socket_vmnet
3
3
4
+ # DEBUG=1 is known to break reproducible builds
5
+ DEBUG ?=
6
+
4
7
export SOURCE_DATE_EPOCH ?= $(shell git log -1 --pretty=% ct)
5
8
# https://reproducible-builds.org/docs/archives/
6
9
TAR ?= gtar --sort=name --mtime="@$(SOURCE_DATE_EPOCH ) " --owner=0 --group=0 --numeric-owner --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime
@@ -11,6 +14,9 @@ DIFFOSCOPE ?= diffoscope
11
14
STRIP ?= strip
12
15
13
16
CFLAGS ?= -O3
17
+ ifeq ($(DEBUG ) ,1)
18
+ CFLAGS += -g
19
+ endif
14
20
15
21
VERSION ?= $(shell git describe --match 'v[0-9]* ' --dirty='.m' --always --tags)
16
22
VERSION_TRIMMED := $(VERSION:v%=% )
You can’t perform that action at this time.
0 commit comments