Glibc has to be built without these defines since it must have both 32bit and
64bit implementations
Change-Id: I1f08b70ab18447d842861e40d45c3a107f1bf206
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
# append -Wno-format and with enabled Wformat options that produced warnings
# that turns into errors. Remove -Wformat=1|2 or -Wformat-..-arg
BuildFlags="$(echo $BuildFlags | sed -re 's/-Wformat((=[1-2])|((-\w+)+))?(\s|$)//g')"
-BuildFlags="$(echo $BuildFlags | sed -re 's/-Wp,-D_FILE_OFFSET_BITS=[0-9]+//g')"
BuildCC="%__cc"
BuildCCplus="%__cxx"
add_ons=",libidn"
BuildFlags="$BuildFlags -g"
+
+%ifarch %arm
+# Glibc must have both functions' implementations
+BuildFlags="$BuildFlags -U_LARGEFILE_SOURCE -U_LARGEFILE64_SOURCE -U_FILE_OFFSET_BITS"
+%endif
%if %{disable_assert}
BuildFlags="$BuildFlags -DNDEBUG=1"
%endif