mirror of
				https://github.com/0glabs/0g-chain.git
				synced 2025-11-04 09:17:28 +00:00 
			
		
		
		
	build: inject brew deps for MacOS rocksdb build (#1812)
* build: inject brew deps for MacOS rocksdb build * configure make build-rocksdb-brew
This commit is contained in:
		
							parent
							
								
									ac2e46f91e
								
							
						
					
					
						commit
						72e8641c8d
					
				
							
								
								
									
										8
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								Makefile
									
									
									
									
									
								
							@ -196,6 +196,14 @@ endif
 | 
			
		||||
build-linux: go.sum
 | 
			
		||||
	LEDGER_ENABLED=false GOOS=linux GOARCH=amd64 $(MAKE) build
 | 
			
		||||
 | 
			
		||||
# build on rocksdb-backed kava on macOS with shared libs from brew
 | 
			
		||||
# this assumes you are on macOS & these deps have been installed with brew:
 | 
			
		||||
# rocksdb, snappy, lz4, and zstd
 | 
			
		||||
# use like `make build-rocksdb-brew COSMOS_BUILD_OPTIONS=rocksdb`
 | 
			
		||||
build-rocksdb-brew:
 | 
			
		||||
	export CGO_CFLAGS := -I$(shell brew --prefix rocksdb)/include
 | 
			
		||||
	export CGO_LDFLAGS := -L$(shell brew --prefix rocksdb)/lib -lrocksdb -lstdc++ -lm -lz -L$(shell brew --prefix snappy)/lib -L$(shell brew --prefix lz4)/lib -L$(shell brew --prefix zstd)/lib
 | 
			
		||||
 | 
			
		||||
install: go.sum
 | 
			
		||||
	$(GO_BIN) install -mod=readonly $(BUILD_FLAGS) ./cmd/kava
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user