Skip to content

Commit

Permalink
Fix libgmp.dylib's identity.
Browse files Browse the repository at this point in the history
  * gmp.h: libgmp.dylib's identity, as built, is $prefix/lib/libgmp.10.dylib.
      Because of a misunderstanding about iains's changes to runpath
      handling, I'd changed this to @rpath/libgmp.10.dylib.
      Reverted.
  • Loading branch information
simonjwright committed May 20, 2023
1 parent 51afe86 commit 4a761c3
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions gmp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,11 @@ rm -rf *
$GCC_SRC/gmp/configure \
--prefix=$PREFIX \
--host=$BUILD \
--target=$BUILD \
--build=$BUILD \
--enable-cxx \
--enable-shared

make -w -j7

# Can't find a way to make the shared library identities to start
# @rpath, so fix up.
(
set -eu
cd .libs
for lib in $(find . -type f -name \*.dylib); do
# remove the leading "./"
l=$(echo $lib | cut -b3-)
install_name_tool -id @rpath/$l $lib
done
)

make install

0 comments on commit 4a761c3

Please sign in to comment.