cygwin: rebase fixes

- use fixupOutputsHook to find libs in all outputs
- don't rebase symlinks
This commit is contained in:
David McFarland 2017-05-23 10:35:23 -03:00
parent 3584707638
commit cdc5cf52c1
2 changed files with 6 additions and 6 deletions

View File

@ -1,10 +1,10 @@
postFixupHooks+=(_cygwinFixAutoImageBase)
fixupOutputHooks+=(_cygwinFixAutoImageBase)
_cygwinFixAutoImageBase() {
if [ "$dontRebase" == 1 ]; then
if [ "$dontRebase" == 1 ] || [ ! -d "$prefix" ]; then
return
fi
find $out -name "*.dll" | while read DLL; do
find "$prefix" -name "*.dll" -type f | while read DLL; do
if [ -f /etc/rebasenix.nextbase ]; then
NEXTBASE="$(</etc/rebasenix.nextbase)"
fi

View File

@ -1,10 +1,10 @@
postFixupHooks+=(_cygwinFixAutoImageBase)
fixupOutputHooks+=(_cygwinFixAutoImageBase)
_cygwinFixAutoImageBase() {
if [ "$dontRebase" == 1 ]; then
if [ "$dontRebase" == 1 ] || [ ! -d "$prefix" ]; then
return
fi
find $out -name "*.dll" | while read DLL; do
find "$prefix" -name "*.dll" -type f | while read DLL; do
if [ -f /etc/rebasenix.nextbase ]; then
NEXTBASE="$(</etc/rebasenix.nextbase)"
fi