From bcf2ac66e6c21d75f4e76b8e0bc2e3c6d64886b8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 11 Feb 2011 09:44:18 +0200 Subject: Add symbol visibility flags in iOS configuration --- dist/etc/ios/README | 8 +++++++- dist/etc/ios/config-device-ios-4.1.make | 4 ++-- dist/etc/ios/config-simulator-ios-4.1.make | 4 ++-- 3 files changed, 11 insertions(+), 5 deletions(-) (limited to 'dist') diff --git a/dist/etc/ios/README b/dist/etc/ios/README index 5edfcb2..e411d97 100644 --- a/dist/etc/ios/README +++ b/dist/etc/ios/README @@ -94,7 +94,13 @@ To build the XSD/e runtime library (libxsde.a), perform the following steps: 5.9 Scroll down to the "Search Paths" section and add . (dot) to the "Header Search Paths" field. - 5.10 Build the project for all the desired configurations (for example, + 5.10 Scroll down to the "GCC 4.2 - Language" section and add the + -fvisibility=hidden flag to the "Other C Flags" field as well + as the -fvisibility=hidden and -fvisibility-inlines-hidden flags + to the "Other C++ Flags" field. If you set any extra C/C++ flags + in your application's project, you may also want to add them here. + + 5.11 Build the project for all the desired configurations (for example, Debug/Release, Device/Simulator, ARMv6/ARMv7, etc). 6. In the terminal window create "fat" libraries by running the following diff --git a/dist/etc/ios/config-device-ios-4.1.make b/dist/etc/ios/config-device-ios-4.1.make index b494aee..aeac439 100644 --- a/dist/etc/ios/config-device-ios-4.1.make +++ b/dist/etc/ios/config-device-ios-4.1.make @@ -7,11 +7,11 @@ IPHONE_SDK := $(IPHONE_PLATFORM)/SDKs/iPhoneOS4.1.sdk # Toolchain. # CC := $(IPHONE_PLATFORM)/usr/bin/gcc-4.2 -CFLAGS := -W -Wall -arch armv6 -fpascal-strings -Os -mthumb -isysroot $(IPHONE_SDK) +CFLAGS := -W -Wall -arch armv6 -fpascal-strings -Os -mthumb -fvisibility=hidden -isysroot $(IPHONE_SDK) CPPFLAGS := CXX := $(IPHONE_PLATFORM)/usr/bin/g++-4.2 -CXXFLAGS := -W -Wall -arch armv6 -fpascal-strings -Os -mthumb -isysroot $(IPHONE_SDK) +CXXFLAGS := -W -Wall -arch armv6 -fpascal-strings -Os -mthumb -fvisibility=hidden -fvisibility-inlines-hidden -isysroot $(IPHONE_SDK) LD := $(CXX) LDFLAGS := $(CXXFLAGS) diff --git a/dist/etc/ios/config-simulator-ios-4.1.make b/dist/etc/ios/config-simulator-ios-4.1.make index db732dc..136a511 100644 --- a/dist/etc/ios/config-simulator-ios-4.1.make +++ b/dist/etc/ios/config-simulator-ios-4.1.make @@ -7,11 +7,11 @@ IPHONE_SDK := $(IPHONE_PLATFORM)/SDKs/iPhoneSimulator4.1.sdk # Toolchain. # CC := $(IPHONE_PLATFORM)/usr/bin/gcc-4.2 -CFLAGS := -W -Wall -arch i386 -fpascal-strings -fasm-blocks -Os -isysroot $(IPHONE_SDK) +CFLAGS := -W -Wall -arch i386 -fpascal-strings -fasm-blocks -Os -fvisibility=hidden -isysroot $(IPHONE_SDK) CPPFLAGS := CXX := $(IPHONE_PLATFORM)/usr/bin/g++-4.2 -CXXFLAGS := -W -Wall -arch i386 -fpascal-strings -fasm-blocks -Os -isysroot $(IPHONE_SDK) +CXXFLAGS := -W -Wall -arch i386 -fpascal-strings -fasm-blocks -Os -fvisibility=hidden -fvisibility-inlines-hidden -isysroot $(IPHONE_SDK) LD := $(CXX) LDFLAGS := $(CXXFLAGS) -- cgit v1.1