Ticket #26410: patch-configure-change_install_names.diff
File patch-configure-change_install_names.diff, 2.6 KB (added by stevecheckoway (Stephen Checkoway), 14 years ago) |
---|
-
configure
old new 34968 34968 DYLIB_RPATH_POSTLINK="${HOST_PREFIX}install_name_tool -id \$@ \$@" 34969 34969 cat <<EOF >change-install-names 34970 34970 #!/bin/sh 34971 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` 34972 for i in \${libnames} ; do 34973 ${HOST_PREFIX}install_name_tool -id \${1}/\${i} \${1}/\${i} 34974 for dep in \${libnames} ; do 34975 ${HOST_PREFIX}install_name_tool -change \${2}/\${dep} \${1}/\${dep} \${1}/\${i} 34976 done 34971 libnames=\`find \$4 -type f -a -regex '.*\.[0-9]+\.dylib' -exec basename '{}' \;\` 34972 changes='' 34973 for dep in \$libnames; do 34974 changes="\$changes -change \$4/\$dep \$3/\$dep" 34977 34975 done 34976 for i in \$libnames; do 34977 ${HOST_PREFIX}install_name_tool \$changes -id \$3/\$i \$1/\$i 34978 done 34979 ${HOST_PREFIX}install_name_tool \$changes \$2/wxrc-2.9 34978 34980 EOF 34979 34981 chmod +x change-install-names 34980 DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${ libdir} \$(wx_top_builddir)/lib"34982 DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${DESTDIR}\${libdir} \${DESTDIR}\${bindir} \${libdir} \$(wx_top_builddir)/lib" 34981 34983 fi 34982 34984 34983 34985 HEADER_PAD_OPTION="-headerpad_max_install_names" -
configure.in
old new 3989 3989 DYLIB_RPATH_POSTLINK="${HOST_PREFIX}install_name_tool -id \$@ \$@" 3990 3990 cat <<EOF >change-install-names 3991 3991 #!/bin/sh 3992 libnames=\`cd \${1} ; ls -1 | grep '\.[[0-9]][[0-9]]*\.dylib\$'\` 3993 for i in \${libnames} ; do 3994 ${HOST_PREFIX}install_name_tool -id \${1}/\${i} \${1}/\${i} 3995 for dep in \${libnames} ; do 3996 ${HOST_PREFIX}install_name_tool -change \${2}/\${dep} \${1}/\${dep} \${1}/\${i} 3997 done 3992 libnames=\`find \$4 -type f -a -regex '.*\.[0-9]+\.dylib' -exec basename '{}' \;\` 3993 changes='' 3994 for dep in \$libnames; do 3995 changes="\$changes -change \$4/\$dep \$3/\$dep" 3998 3996 done 3997 for i in \$libnames; do 3998 ${HOST_PREFIX}install_name_tool \$changes -id \$3/\$i \$1/\$i 3999 done 4000 ${HOST_PREFIX}install_name_tool \$changes \$2/wxrc-2.9 3999 4001 EOF 4000 4002 chmod +x change-install-names 4001 DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${ libdir} \$(wx_top_builddir)/lib"4003 DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${DESTDIR}\${libdir} \${DESTDIR}\${bindir} \${libdir} \$(wx_top_builddir)/lib" 4002 4004 fi 4003 4005 4004 4006 dnl the HEADER_PAD_OPTION is required by some wx samples to avoid the error: