File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change
1
+ PROFILE := release
2
+
1
3
ifeq ($(shell uname) ,Darwin)
4
+ ifeq ($(FIPS ) , true)
5
+ AWS_LC_FIPS_LIB_PATH := $(shell cargo build --profile $(PROFILE ) --features=fips --message-format=json | jq -r 'select(.package_id | contains("aws-lc-fips-sys") ) | select(.linked_paths != null) | .linked_paths[0]' | cut -d= -f2)
6
+ LDFLAGS := -Wl,-dead_strip -framework Security -framework Foundation -L$(AWS_LC_FIPS_LIB_PATH ) -l aws_lc_fips_0_12_13_crypto
7
+ else
2
8
LDFLAGS := -Wl,-dead_strip -framework Security -framework Foundation
9
+ endif
3
10
else
4
11
LDFLAGS := -Wl,--gc-sections -lpthread -ldl
5
12
endif
@@ -8,7 +15,6 @@ CARGO ?= cargo
8
15
CARGOFLAGS += --locked
9
16
10
17
CFLAGS := -Werror -Wall -Wextra -Wpedantic -g -I src/
11
- PROFILE := release
12
18
CRYPTO_PROVIDER := aws-lc-rs
13
19
COMPRESSION := false
14
20
FIPS := false
You can’t perform that action at this time.
0 commit comments