Skip to content

Commit 6924585

Browse files
author
Lucas McDonald
committed
Fix macOS install_name_tool header padding error
Replace post-link install_name_tool calls with -Wl,-rpath flags during linking to avoid Mach-O header space issues on macos-latest-large runners.
1 parent cf53649 commit 6924585

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/TestVectors/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
test_vectors: *.cpp *.h
22
g++ -g -ggdb --std=c++17 -o test_vectors -I../../include/ \
3+
-Wl,-rpath,../../build-aws-encryption-sdk-c/Debug/ \
4+
-Wl,-rpath,../../build-aws-encryption-sdk-c/aws-encryption-sdk-cpp/Debug/ \
5+
-Wl,-rpath,../../install/lib/ \
36
base64.cpp do_decrypt.cpp do_encrypt.cpp parse_encrypt.cpp parse_keys.cpp test_vectors.cpp \
47
-I/opt/homebrew/include/ -L/opt/homebrew/lib/ \
58
-I../../install/include/ -L../../install/lib/ -I ../../aws-encryption-sdk-cpp/include/ \
69
../../build-aws-encryption-sdk-c/Debug/libaws-encryption-sdk.dylib \
710
../../build-aws-encryption-sdk-c/aws-encryption-sdk-cpp/Debug/libaws-encryption-sdk-cpp.dylib \
811
-laws-cpp-sdk-core -laws-cpp-sdk-kms -laws-c-common -lcrypto
9-
install_name_tool -add_rpath ../../build-aws-encryption-sdk-c/Debug/ test_vectors
10-
install_name_tool -add_rpath ../../build-aws-encryption-sdk-c/aws-encryption-sdk-cpp/Debug/ test_vectors
11-
install_name_tool -add_rpath ../../install/lib/ test_vectors
1212

1313
test_vectors_unix: *.cpp *.h
1414
g++ -g -ggdb --std=c++17 -o test_vectors -I../../include/ \

0 commit comments

Comments
 (0)