Apply -fvisibility to decrease binary size 61/111961/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Wed, 25 Jan 2017 06:32:13 +0000 (15:32 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Wed, 25 Jan 2017 06:32:13 +0000 (15:32 +0900)
Change-Id: I82e2e8fc3cc15edf8935e43942648256ed5dfe11
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
packaging/org.tizen.inputmethod-setting.spec

index df86182..deea3da 100644 (file)
@@ -24,12 +24,9 @@ Setting Application for ISF.
 %setup -q -n %{name}-%{version}
 
 %build
-export CFLAGS="$CFLAGS -DTIZEN_ENGINEER_MODE"
-export CXXFLAGS="$CXXFLAGS -DTIZEN_ENGINEER_MODE"
-export FFLAGS="$FFLAGS -DTIZEN_ENGINEER_MODE"
-export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
-export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
-export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
+export CFLAGS="$CFLAGS -DTIZEN_ENGINEER_MODE -DTIZEN_DEBUG_ENABLE -fvisibility=hidden"
+export CXXFLAGS="$CXXFLAGS -DTIZEN_ENGINEER_MODE -DTIZEN_DEBUG_ENABLE -fvisibility=hidden -fvisibility-inlines-hidden"
+export FFLAGS="$FFLAGS -DTIZEN_ENGINEER_MODE -DTIZEN_DEBUG_ENABLE"
 
 %if "%{?profile}" == "mobile"
 CFLAGS+=" -D_MOBILE";