Skip to content

Commit

Permalink
fix for libtool bug
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverepper committed Feb 16, 2023
1 parent b033c68 commit 48613f9
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,17 @@ function createLib {
unset SDL
unset SDL_LATEST
fi
libtool -static -o libpjproject.a ./*.a "${EXTRA_LIBS[@]}"
ranlib libpjproject.a

LLVM=(/opt/homebrew/Cellar/llvm/*)
LLVM_LATEST=${LLVM[${#LLVM[@]} - 1]}
if [[ -d "${LLVM_LATEST}" ]]
then
${LLVM_LATEST}/bin/llvm-libtool-darwin -static -o libpjproject.a ./*.a "${EXTRA_LIBS[@]}"
touch libpjproject_is_sane
else
libtool -static -o libpjproject.a ./*.a "${EXTRA_LIBS[@]}"
touch libpjproject_is_broken
fi
popd
}

Expand Down

0 comments on commit 48613f9

Please sign in to comment.