packaging: disable renaming in ICU headers too 03/98403/1
authorDongHun Kwak <dh0128.kwak@samsung.com>
Thu, 17 Nov 2016 07:19:59 +0000 (16:19 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Thu, 17 Nov 2016 07:19:59 +0000 (16:19 +0900)
Exported symbols in ICU shared library have no suffix (--disable-renaming is used at configure time).
But the option must also be disabled for source codes that will use ICU and include ICU headers.
otherwise there are multiple problems at link time: the linker tries to resolve symbols 'u_xxxx_51'
instead of 'u_xxxx' as exported by the library.

[Model] ALL
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] N/A
[Occurrence Version] N/A

[Problem] harfbuzz package build error.
[Cause & Measure] invalid icu suffix flag.
[Checking Method] N/A

[Team] Open Source Management and Setting Part
[Developer] dh0128.kwak
[Solution company] Samsung
[Change Type] N/A

Change-Id: I2fd4d9c63c522e27d97060ce20d05ac7e4f2e0bd
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
packaging/icu.spec
source/common/unicode/uconfig.h

index 248f0ef..adb1123 100644 (file)
@@ -56,11 +56,11 @@ cp %{SOURCE1001} .
 
 %build
 cd source
-%configure --disable-static \
-            --disable-renaming \
+%configure --enable-static=no \
+            --enable-renaming=no \
             --enable-shared \
             --enable-plugins \
-            --disable-samples
+            --enable-samples=no
 make %{?_smp_mflags}
 
 %check
index 77a476d..cca33a8 100644 (file)
@@ -89,7 +89,7 @@
  * @internal
  */
 #ifndef U_DISABLE_RENAMING
-#define U_DISABLE_RENAMING 0
+#define U_DISABLE_RENAMING 1
 #endif
 
 /**