From cfc772130b9331c10d77f7680b9cdfa673c016e5 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Wed, 23 Aug 2023 16:58:34 -0400 Subject: [PATCH] fix(boost) the change to fix-machos broke other things, and introduced too much complexity. --- projects/boost.org/package.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/projects/boost.org/package.yml b/projects/boost.org/package.yml index b503e910..ed44f9f3 100644 --- a/projects/boost.org/package.yml +++ b/projects/boost.org/package.yml @@ -13,9 +13,18 @@ build: dependencies: tea.xyz/gx/cc: c99 tea.xyz/gx/make: '*' - script: | - ./bootstrap.sh --prefix={{ prefix }} - ./b2 $ARGS + script: + - ./bootstrap.sh --prefix={{ prefix }} + - ./b2 $ARGS + + # boost.org has libs that end up with name @rpath/libboost_atomic.dylib (offset 24) + # so we need to add @loader_path to the rpath + - run: | + for LIB in *.dylib; do + install_name_tool -add_rpath @loader_path $LIB + done + working-directory: ${{prefix}}/lib + if: darwin env: ARGS: - install