aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-10-16 22:46:44 +0000
committerstuconnolly <stuart02@gmail.com>2010-10-16 22:46:44 +0000
commit23cbc5372a7bb06b491fe906956d6523e2e6daf7 (patch)
tree2d517ab7462bd4ee521ab96ca5b18fcce702a1ea
parent60c5717869cdd6f68355f720b63a6df1bb7c87c6 (diff)
downloadsequelpro-23cbc5372a7bb06b491fe906956d6523e2e6daf7.tar.gz
sequelpro-23cbc5372a7bb06b491fe906956d6523e2e6daf7.tar.bz2
sequelpro-23cbc5372a7bb06b491fe906956d6523e2e6daf7.zip
Tidy up linker flags across all targets, specifically remove linking against stdc++, which was introduced in r2444 as a workaround for a bug in Clang 1.5 that failed to compile RegexKitLite. Take the approach suggested by the developer of RegexKitLite, which is to disable the macro that uses __attribute__((cleanup)), which trips the bug. Apparently it is only used for debugging purposes. See http://llvm.org/viewvc/llvm-project?view=rev&revision=103938 for the Clang fix.
-rw-r--r--Source/RegexKitLite.m5
-rw-r--r--sequel-pro.xcodeproj/project.pbxproj18
2 files changed, 4 insertions, 19 deletions
diff --git a/Source/RegexKitLite.m b/Source/RegexKitLite.m
index dababa6a..a3e3dce1 100644
--- a/Source/RegexKitLite.m
+++ b/Source/RegexKitLite.m
@@ -165,8 +165,9 @@ typedef uint32_t RKLLookasideCache_t;
#define RKL_EXPECTED(cond, expect) __builtin_expect((long)(cond), (expect))
#define RKL_PREFETCH(ptr) __builtin_prefetch(ptr)
#define RKL_PREFETCH_UNICHAR(ptr, off) { const char *p = ((const char *)(ptr)) + ((off) * sizeof(UniChar)) + _RKL_PREFETCH_SIZE; RKL_PREFETCH(p); RKL_PREFETCH(p + _RKL_PREFETCH_SIZE); }
-#define RKL_HAVE_CLEANUP
-#define RKL_CLEANUP(func) RKL_ATTRIBUTES(cleanup(func))
+//#define RKL_HAVE_CLEANUP
+//#define RKL_CLEANUP(func) RKL_ATTRIBUTES(cleanup(func))
+#define RKL_CLEANUP(func)
#else // defined (__GNUC__) && (__GNUC__ >= 4)
#define RKL_ATTRIBUTES(attr, ...)
#define RKL_EXPECTED(cond, expect) (cond)
diff --git a/sequel-pro.xcodeproj/project.pbxproj b/sequel-pro.xcodeproj/project.pbxproj
index 538543e3..513df787 100644
--- a/sequel-pro.xcodeproj/project.pbxproj
+++ b/sequel-pro.xcodeproj/project.pbxproj
@@ -3446,7 +3446,6 @@
GCC_PREFIX_HEADER = "";
INFOPLIST_FILE = "Resources/Plists/Sequel Pro QLGenerator-Info.plist";
INSTALL_PATH = /Library/QuickLook;
- OTHER_LDFLAGS = "";
PREBINDING = NO;
PRODUCT_NAME = "Sequel Pro";
WRAPPER_EXTENSION = qlgenerator;
@@ -3465,7 +3464,6 @@
GCC_PREFIX_HEADER = "";
INFOPLIST_FILE = "Resources/Plists/Sequel Pro QLGenerator-Info.plist";
INSTALL_PATH = /Library/QuickLook;
- OTHER_LDFLAGS = "";
PREBINDING = NO;
PRODUCT_NAME = "Sequel Pro";
WRAPPER_EXTENSION = qlgenerator;
@@ -3483,7 +3481,6 @@
GCC_PREFIX_HEADER = "";
INFOPLIST_FILE = "Resources/Plists/Sequel Pro QLGenerator-Info.plist";
INSTALL_PATH = /Library/QuickLook;
- OTHER_LDFLAGS = "";
PREBINDING = NO;
PRODUCT_NAME = "Sequel Pro";
WRAPPER_EXTENSION = qlgenerator;
@@ -3553,8 +3550,8 @@
"\"$(SRCROOT)/Frameworks/zlib\"",
);
OTHER_LDFLAGS = (
- "-lstdc++",
"$(SRCROOT)/Frameworks/zlib/libz.a",
+ "-lcrypto",
);
PRODUCT_NAME = "Sequel Pro";
SEPARATE_STRIP = NO;
@@ -3577,7 +3574,6 @@
GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/AppKit.framework/Headers/AppKit.h";
INFOPLIST_FILE = "Resources/Plists/PSMTabBar-Info.plist";
INSTALL_PATH = "@executable_path/../Frameworks";
- OTHER_LDFLAGS = "";
PREBINDING = NO;
PRODUCT_NAME = PSMTabBar;
};
@@ -3598,7 +3594,6 @@
GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/AppKit.framework/Headers/AppKit.h";
INFOPLIST_FILE = "Resources/Plists/PSMTabBar-Info.plist";
INSTALL_PATH = "@executable_path/../Frameworks";
- OTHER_LDFLAGS = "";
PREBINDING = NO;
PRODUCT_NAME = PSMTabBar;
ZERO_LINK = NO;
@@ -3618,7 +3613,6 @@
GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/AppKit.framework/Headers/AppKit.h";
INFOPLIST_FILE = "Resources/Plists/PSMTabBar-Info.plist";
INSTALL_PATH = "@executable_path/../Frameworks";
- OTHER_LDFLAGS = "";
PREBINDING = NO;
PRODUCT_NAME = PSMTabBar;
};
@@ -3703,7 +3697,6 @@
GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/AppKit.framework/Headers/AppKit.h";
INSTALL_PATH = /usr/local/bin;
OTHER_LDFLAGS = (
- "-lstdc++",
"-framework",
Foundation,
"-framework",
@@ -3726,7 +3719,6 @@
GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/AppKit.framework/Headers/AppKit.h";
INSTALL_PATH = /usr/local/bin;
OTHER_LDFLAGS = (
- "-lstdc++",
"-framework",
Foundation,
"-framework",
@@ -3748,7 +3740,6 @@
GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/AppKit.framework/Headers/AppKit.h";
INSTALL_PATH = /usr/local/bin;
OTHER_LDFLAGS = (
- "-lstdc++",
"-framework",
Foundation,
"-framework",
@@ -3781,7 +3772,6 @@
"\"$(SRCROOT)/Frameworks/zlib\"",
);
OTHER_LDFLAGS = (
- "-lstdc++",
"$(SRCROOT)/Frameworks/zlib/libz.a",
"-lcrypto",
);
@@ -3810,7 +3800,6 @@
"\"$(SRCROOT)/Frameworks/zlib\"",
);
OTHER_LDFLAGS = (
- "-lstdc++",
"$(SRCROOT)/Frameworks/zlib/libz.a",
"-lcrypto",
);
@@ -3866,10 +3855,6 @@
LEX_SUPPRESS_DEFAULT_RULE = NO;
LIBRARY_SEARCH_PATHS = "";
ONLY_ACTIVE_ARCH = YES;
- OTHER_LDFLAGS = (
- "-lstdc++",
- "-lcrypto",
- );
PREBINDING = NO;
SDKROOT = macosx10.5;
STRIP_INSTALLED_PRODUCT = NO;
@@ -3916,7 +3901,6 @@
GCC_WARN_UNUSED_VALUE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IBC_WARNINGS = YES;
- OTHER_LDFLAGS = "-lcrypto";
PREBINDING = NO;
SDKROOT = macosx10.5;
VALID_ARCHS = "i386 ppc x86_64";