From 73dc9f63d6d8e91d355d10b20e076fc460506308 Mon Sep 17 00:00:00 2001 From: NoTag Date: Sat, 6 Jan 2024 23:55:43 +0100 Subject: [PATCH] Allow to configure the C compiler in the ip46tables make target --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4f1cfaa..f1c529f 100644 --- a/Makefile +++ b/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`"