diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-07 04:25:54 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-07 06:10:50 -0800 |
commit | 9f9ae81c2742d82fa45dcabceed3e988bdac095c (patch) | |
tree | 02cc45de01f0b5384022b443bae70adb06e1fdd6 | |
parent | 8fec9d25c45228642795f108ec8422cb9a36eac1 (diff) |
Use -fvisibility=hidden.
-rw-r--r-- | MobileCydia.mm | 19 | ||||
-rw-r--r-- | makefile | 2 |
2 files changed, 12 insertions, 9 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 2a76717..c072c26 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -3036,6 +3036,15 @@ static NSString *Elision_; static NSString *Error_; static NSString *Warning_; +class CydiaLogCleaner : + public pkgArchiveCleaner +{ + protected: + virtual void Erase(const char *File, std::string Pkg, std::string Ver, struct stat &St) { + unlink(File); + } +}; + /* Database Implementation {{{ */ @implementation Database @@ -3498,15 +3507,7 @@ static NSString *Warning_; pkgAcquire fetcher; fetcher.Clean(_config->FindDir("Dir::Cache::Archives")); - class LogCleaner : - public pkgArchiveCleaner - { - protected: - virtual void Erase(const char *File, std::string Pkg, std::string Ver, struct stat &St) { - unlink(File); - } - } cleaner; - + CydiaLogCleaner cleaner; if ([self popErrorWithTitle:title forOperation:cleaner.Go(_config->FindDir("Dir::Cache::Archives") + "partial/", cache_)]) return false; @@ -27,9 +27,11 @@ flags += -fmessage-length=0 flags += -g0 -O2 flags += -fobjc-exceptions flags += -fno-guess-branch-probability +flags += -fvisibility=hidden xflags := xflags += -fobjc-call-cxx-cdtors +xflags += -fvisibility-inlines-hidden link += -framework CoreFoundation link += -framework CoreGraphics |