Changeset 814 in code for trunk/Makefile


Ignore:
Timestamp:
Mar 23, 2023, 10:05:09 PM (2 years ago)
Author:
koizumi.aoi
Message:

Enable cross-compilation via the usual GOARCH/GOOS pair for use with make, also enable static builds

Signed-off-by: Aoi K <koizumi.aoi@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r809 r814  
    22RM ?= rm
    33SCDOC ?= scdoc
    4 GOFLAGS ?= -v -ldflags "-w -X `go list`.Version=$(VERSION) -X `go list`.Commit=$(COMMIT) -X `go list`.Build=$(BUILD)"
     4GOFLAGS ?= -v -ldflags "-w -X `go list`.Version=$(VERSION) -X `go list`.Commit=$(COMMIT) -X `go list`.Build=$(BUILD)" -tags "static_build"
    55PREFIX ?= /usr/local
    66BINDIR ?= bin
     
    1313BRANCH = `git rev-parse --abbrev-ref HEAD`
    1414BUILD = `git show -s --pretty=format:%cI`
     15
     16GOARCH ?= amd64
     17GOOS ?= linux
    1518
    1619all: suika suikactl suika-znc-import doc/suika.1
Note: See TracChangeset for help on using the changeset viewer.