summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-libs/libowfat/libowfat-0.32-r5.ebuild (renamed from dev-libs/libowfat/libowfat-0.32-r4.ebuild)10
1 files changed, 10 insertions, 0 deletions
diff --git a/dev-libs/libowfat/libowfat-0.32-r4.ebuild b/dev-libs/libowfat/libowfat-0.32-r5.ebuild
index 1d012c474e76..c85792782f66 100644
--- a/dev-libs/libowfat/libowfat-0.32-r4.ebuild
+++ b/dev-libs/libowfat/libowfat-0.32-r5.ebuild
@@ -27,6 +27,16 @@ pkg_setup() {
append-flags -fomit-frame-pointer
}
+src_prepare() {
+ default
+
+ # do not define "__pure__", this the gcc builtin (bug #806505)
+ sed 's#__pure__;#__attribute__((__pure__));#' -i fmt.h scan.h byte.h stralloc.h str.h critbit.h || die
+ sed 's#__pure__$#__attrib__pure__#' -i fmt.h scan.h byte.h stralloc.h str.h critbit.h || die
+ # remove unneeded definition of __deprecated__
+ sed '/^#define __deprecated__$/d' -i scan/scan_iso8601.c scan/scan_httpdate.c || die
+}
+
src_compile() {
emake \
CC=$(tc-getCC) \