save import libintl.8.dylib
This commit is contained in:
parent
011abfd8db
commit
4dea12dd9e
@ -1,9 +1,9 @@
|
|||||||
package action
|
package action
|
||||||
|
|
||||||
import (
|
import (
|
||||||
// "fmt"
|
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
// log "github.com/sirupsen/logrus"
|
// log "github.com/sirupsen/logrus"
|
||||||
|
|
||||||
. "ios-wrapper/internal/wrapper/ofile"
|
. "ios-wrapper/internal/wrapper/ofile"
|
||||||
@ -57,6 +57,14 @@ func (action *saveImports) saveToInfo(mf *MachoFile) error {
|
|||||||
current_lib_idx := -1
|
current_lib_idx := -1
|
||||||
current_symbol_idx := -1
|
current_symbol_idx := -1
|
||||||
|
|
||||||
|
intlSymbols := []string{}
|
||||||
|
for _, symbol := range symbols_raw {
|
||||||
|
if symbol.Dylib() == "/usr/local/opt/gettext/lib/libintl.8.dylib" {
|
||||||
|
intlSymbols = append(intlSymbols, symbol.Name())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
action.keepSymbols = append(action.keepSymbols, intlSymbols...)
|
||||||
|
|
||||||
// now we expect everything is sorted and easier to build strings tables
|
// now we expect everything is sorted and easier to build strings tables
|
||||||
// this is not fully optimized, there can be repeated symbol name in different libraries
|
// this is not fully optimized, there can be repeated symbol name in different libraries
|
||||||
for _, symbol := range symbols_raw {
|
for _, symbol := range symbols_raw {
|
||||||
|
Loading…
Reference in New Issue
Block a user