mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Set the ldflags to static value within makefile (#709)
This commit is contained in:
		
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							@@ -11,7 +11,7 @@ BINDATA := modules/{options,public,templates}/bindata.go
 | 
				
			|||||||
STYLESHEETS := $(wildcard public/less/index.less public/less/_*.less)
 | 
					STYLESHEETS := $(wildcard public/less/index.less public/less/_*.less)
 | 
				
			||||||
JAVASCRIPTS :=
 | 
					JAVASCRIPTS :=
 | 
				
			||||||
 | 
					
 | 
				
			||||||
LDFLAGS ?= -X "main.Version=$(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')"
 | 
					LDFLAGS := -X "main.Version=$(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
TARGETS ?= linux/*,darwin/*,windows/*
 | 
					TARGETS ?= linux/*,darwin/*,windows/*
 | 
				
			||||||
PACKAGES ?= $(shell go list ./... | grep -v /vendor/)
 | 
					PACKAGES ?= $(shell go list ./... | grep -v /vendor/)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user