From 2d213a306f611261d247d1520d3ef050c7f4ffea Mon Sep 17 00:00:00 2001 From: Thomas Van Lenten Date: Tue, 12 Jan 2016 10:02:48 -0500 Subject: Export unused symbols in category-only files for when they are used in static libs to avoid linker warnings --- Foundation/GTMObjC2Runtime.m | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Foundation/GTMObjC2Runtime.m') diff --git a/Foundation/GTMObjC2Runtime.m b/Foundation/GTMObjC2Runtime.m index e1af2bb..1475103 100644 --- a/Foundation/GTMObjC2Runtime.m +++ b/Foundation/GTMObjC2Runtime.m @@ -18,6 +18,10 @@ #import "GTMObjC2Runtime.h" +// Export a nonsense symbol to suppress a libtool warning when this is linked alone in a static lib. +__attribute__((visibility("default"))) char GTMObjC2RuntimeExportToSuppressLibToolWarning = 0; + + #if GTM_MACOS_SDK && (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5) && !__OBJC2__ #import #import -- cgit v1.2.3