Copy of osx-environment at 9993042d6
[windows-environment.git] / Patches / wxwidgets-change-install-names.patch
1 --- configure.orig      2021-01-01 21:20:21.000000000 +0100
2 +++ configure   2021-01-01 21:28:22.000000000 +0100
3 @@ -29229,7 +29229,7 @@
4              DYLIB_RPATH_POSTLINK="${HOST_PREFIX}install_name_tool -id \$@ \$@"
5              cat <<EOF >change-install-names
6  #!/bin/sh
7 -libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
8 +libnames=\`find \${1} -mindepth 1 -type f -iname "libwx*.dylib" ! -type l -exec basename {} \;\`
9  changes=''
10  for dep in \${libnames} ; do
11      changes="\${changes} -change \${4}/\${dep} \${3}/\${dep}"