Adjust the position of GCC build option 85/221185/1 accepted/tizen/unified/20200101.120636 submit/tizen/20191230.003618
authorDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 30 Dec 2019 04:21:38 +0000 (13:21 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 30 Dec 2019 04:21:38 +0000 (13:21 +0900)
Change-Id: Ifb5ab3083ade1638b80a25167314d5ffb118a7f2
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
packaging/bluez.spec

index 3b6c908..95221ad 100755 (executable)
@@ -180,12 +180,12 @@ autoreconf -fiv
 
 export CFLAGS_DEFAULT="$CFLAGS"
 
+# Add GCC9 exception
+export CFLAGS+=" -Wno-stringop-truncation -Wno-format-truncation -Wno-address-of-packed-member"
+
 export LDFLAGS=" -lncurses -Wl,--as-needed "
 export CFLAGS+=" -Werror -DTIZEN_FEATURE_BLUEZ_MODIFY -DTIZEN_FEATURE_BLUEZ_A2DP_MULTISTREAM -DTIZEN_FEATURE_BLUEZ_PBAP_SIM -DTIZEN_FEATURE_BLUEZ_AVRCP_TARGET -DTIZEN_FEATURE_BLUEZ_AVRCP_CONTROL -DTIZEN_FEATURE_BLUEZ_AVRCP_TARGET -DENABLE_AVRCP_CATEGORY1 -DTIZEN_BT_HID_DEVICE_ENABLE"
 
-# Add GCC9 exception
-export CFLAGS+=" -Wno-error=stringop-truncation -Wno-error=format-truncation -Wno-error=address-of-packed-member"
-
 %ifarch aarch64
 echo arch64
 export CFLAGS+=" -DARCH64"
@@ -243,12 +243,12 @@ autoreconf -fiv
 
 export CFLAGS="$CFLAGS_DEFAULT"
 
+# Add GCC9 exception
+export CFLAGS+=" -Wno-stringop-truncation -Wno-format-truncation -Wno-address-of-packed-member"
+
 export LDFLAGS=" -lncurses -Wl,--as-needed "
 export CFLAGS+=" -Werror -DTIZEN_FEATURE_BLUEZ_MODIFY -DTIZEN_FEATURE_BLUEZ_A2DP_MULTISTREAM -DTIZEN_FEATURE_BLUEZ_PBAP_SIM -DTIZEN_FEATURE_BLUEZ_AVRCP_TARGET -DTIZEN_FEATURE_BLUEZ_AVRCP_CONTROL -DTIZEN_FEATURE_BLUEZ_AVRCP_TARGET -DENABLE_AVRCP_CATEGORY1 -DTIZEN_BT_HID_DEVICE_ENABLE"
 
-# Add GCC9 exception
-export CFLAGS+=" -Wno-error=stringop-truncation -Wno-error=format-truncation -Wno-error=address-of-packed-member"
-
 %ifarch aarch64
 echo arch64
 export CFLAGS+=" -DARCH64"
@@ -308,12 +308,12 @@ autoreconf -fiv
 
 export CFLAGS="$CFLAGS_DEFAULT"
 
+# Add GCC9 exception
+export CFLAGS+=" -Wno-stringop-truncation -Wno-format-truncation -Wno-address-of-packed-member"
+
 export LDFLAGS=" -lncurses -Wl,--as-needed "
 export CFLAGS+=" -Werror -DTIZEN_FEATURE_BLUEZ_MODIFY -DTIZEN_FEATURE_BLUEZ_A2DP_MULTISTREAM -DTIZEN_FEATURE_BLUEZ_PBAP_SIM -DTIZEN_FEATURE_BLUEZ_AVRCP_TARGET -DTIZEN_FEATURE_BLUEZ_AVRCP_CONTROL -DTIZEN_FEATURE_BLUEZ_AVRCP_TARGET -DENABLE_AVRCP_CATEGORY1 -DTIZEN_BT_HID_DEVICE_ENABLE"
 
-# Add GCC9 exception
-export CFLAGS+=" -Wno-error=stringop-truncation -Wno-error=format-truncation -Wno-error=address-of-packed-member"
-
 %ifarch aarch64
 echo arch64
 export CFLAGS+=" -DARCH64"