cygwin: rebase fixes
- use fixupOutputsHook to find libs in all outputs - don't rebase symlinks
This commit is contained in:
parent
3584707638
commit
cdc5cf52c1
@ -1,10 +1,10 @@
|
|||||||
postFixupHooks+=(_cygwinFixAutoImageBase)
|
fixupOutputHooks+=(_cygwinFixAutoImageBase)
|
||||||
|
|
||||||
_cygwinFixAutoImageBase() {
|
_cygwinFixAutoImageBase() {
|
||||||
if [ "$dontRebase" == 1 ]; then
|
if [ "$dontRebase" == 1 ] || [ ! -d "$prefix" ]; then
|
||||||
return
|
return
|
||||||
fi
|
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
|
if [ -f /etc/rebasenix.nextbase ]; then
|
||||||
NEXTBASE="$(</etc/rebasenix.nextbase)"
|
NEXTBASE="$(</etc/rebasenix.nextbase)"
|
||||||
fi
|
fi
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
postFixupHooks+=(_cygwinFixAutoImageBase)
|
fixupOutputHooks+=(_cygwinFixAutoImageBase)
|
||||||
|
|
||||||
_cygwinFixAutoImageBase() {
|
_cygwinFixAutoImageBase() {
|
||||||
if [ "$dontRebase" == 1 ]; then
|
if [ "$dontRebase" == 1 ] || [ ! -d "$prefix" ]; then
|
||||||
return
|
return
|
||||||
fi
|
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
|
if [ -f /etc/rebasenix.nextbase ]; then
|
||||||
NEXTBASE="$(</etc/rebasenix.nextbase)"
|
NEXTBASE="$(</etc/rebasenix.nextbase)"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user