[Tizen_6_build] Fixed 32-bit arm build with gcc 9 84/220984/1 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix accepted/tizen_6.5_base accepted/tizen_7.0_base accepted/tizen_7.0_base_hotfix accepted/tizen_8.0_base accepted/tizen_base accepted/tizen_base_dev accepted/tizen_unified tizen tizen_6.0 tizen_6.0_hotfix tizen_6.5_base tizen_7.0_base tizen_7.0_base_hotfix tizen_8.0_base tizen_base accepted/tizen/6.0/unified/20201030.104653 accepted/tizen/6.0/unified/hotfix/20201103.000109 accepted/tizen/6.5/base/20211028.055403 accepted/tizen/7.0/base/20221116.025847 accepted/tizen/7.0/base/hotfix/20221116.055255 accepted/tizen/8.0/base/20231005.044614 accepted/tizen/base/20210527.075428 accepted/tizen/base/20221115.103724 accepted/tizen/base/dev/20230602.080809 accepted/tizen/unified/20200102.220908 submit/tizen/20191227.021203 submit/tizen_6.0/20201029.205501 submit/tizen_6.0_hotfix/20201102.192901 submit/tizen_6.0_hotfix/20201103.115101 submit/tizen_6.5_base/20211028.133901 submit/tizen_base/20210527.070954 tizen_6.0.m2_release tizen_6.5.m2_release tizen_7.0_m2_release tizen_8.0_m2_release
authorAndrey Kazmin <a.kazmin@partner.samsung.com>
Thu, 19 Dec 2019 14:21:52 +0000 (17:21 +0300)
committerHyunjee Kim <hj0426.kim@samsung.com>
Thu, 26 Dec 2019 06:49:10 +0000 (15:49 +0900)
-Wp,-D_FILE_OFFSET_BITS=64 flag is added for building 32-bit
package version on 64-bit host

Change-Id: I78926f62ef119fb19fc097e92312e11e09eda71c
Signed-off-by: Hyunjee Kim <hj0426.kim@samsung.com>
packaging/boost-jam.spec

index 4071d08..e1e0497 100644 (file)
@@ -24,7 +24,12 @@ find . -type f|xargs chmod -R u+w
 
 %build
 export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wall -fno-strict-aliasing"
-export CFLAGS="$RPM_OPT_FLAGS"
+export CFLAGS="$RPM_OPT_FLAGS -Wp,-D_FILE_OFFSET_BITS=64"
+
+%ifarch armv7l
+export CFLAGS="${CFLAGS} -Wp,-D_FILE_OFFSET_BITS=64"
+%endif
+
 LOCATE_TARGET=bin ./build.sh gcc --symbols
 # Trivial test: -- Documented used of bjam -v: Print the version of jam and exit:
 bin/bjam -v