mirror of
https://framagit.org/ppom/reaction
synced 2026-03-14 20:55:47 +01:00
Allow to configure the C compiler in the ip46tables make target
This commit is contained in:
parent
84d40b3eda
commit
73dc9f63d6
1 changed files with 2 additions and 1 deletions
3
Makefile
3
Makefile
|
|
@ -1,3 +1,4 @@
|
|||
CC ?= gcc
|
||||
PREFIX ?= /usr/local
|
||||
BINDIR = $(PREFIX)/bin
|
||||
|
||||
|
|
@ -7,7 +8,7 @@ clean:
|
|||
rm -f reaction ip46tables reaction.deb deb reaction.minisig ip46tables.minisig reaction.deb.minisig
|
||||
|
||||
ip46tables: ip46tables.d/ip46tables.c
|
||||
gcc -s -static ip46tables.d/ip46tables.c -o ip46tables
|
||||
$(CC) -s -static ip46tables.d/ip46tables.c -o ip46tables
|
||||
|
||||
reaction: app/* reaction.go go.mod go.sum
|
||||
CGO_ENABLED=0 go build -buildvcs=false -ldflags "-s -X main.version=`git tag --sort=v:refname | tail -n1` -X main.commit=`git rev-parse --short HEAD`"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue