From 29027806d47fb26652308bb1265765a8db82c76f Mon Sep 17 00:00:00 2001 From: Cedric Schieli Date: Sun, 21 Mar 2010 12:32:03 +0000 Subject: main/xe-guest-utilities: new aport Signed-off-by: Cedric Schieli --- main/xe-guest-utilities/fix_cflags.patch | 43 ++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 main/xe-guest-utilities/fix_cflags.patch (limited to 'main/xe-guest-utilities/fix_cflags.patch') diff --git a/main/xe-guest-utilities/fix_cflags.patch b/main/xe-guest-utilities/fix_cflags.patch new file mode 100644 index 0000000000..866fa29fd3 --- /dev/null +++ b/main/xe-guest-utilities/fix_cflags.patch @@ -0,0 +1,43 @@ +--- xe-guest-utilities-5.5.0.orig/uclibc-sources/Config.mk ++++ xe-guest-utilities-5.5.0/uclibc-sources/Config.mk +@@ -70,7 +70,6 @@ + export XEN_ROOT + endef + +-CFLAGS += -g + + CFLAGS += -fno-strict-aliasing + +--- xe-guest-utilities-5.5.0.orig/uclibc-sources/config/StdGNU.mk ++++ xe-guest-utilities-5.5.0/uclibc-sources/config/StdGNU.mk +@@ -44,7 +44,6 @@ + SHLIB_CFLAGS = -shared + + ifneq ($(debug),y) +-CFLAGS += -O2 -fomit-frame-pointer + else + # Less than -O1 produces bad code and large stack frames + CFLAGS += -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls +--- xe-guest-utilities-5.5.0.orig/uclibc-sources/config/x86_32.mk ++++ xe-guest-utilities-5.5.0/uclibc-sources/config/x86_32.mk +@@ -7,7 +7,6 @@ + CONFIG_XCUTILS := y + CONFIG_IOEMU := n + +-CFLAGS += -m32 -march=i686 + + # Use only if calling $(LD) directly. + LDFLAGS_DIRECT_OpenBSD = _obsd +--- xe-guest-utilities-5.5.0.orig/uclibc-sources/tools/Rules.mk ++++ xe-guest-utilities-5.5.0/uclibc-sources/tools/Rules.mk +@@ -27,9 +27,7 @@ + CFLAGS += -D__XEN_TOOLS__ + + # Enable implicit LFS support *and* explicit LFS names. +-CFLAGS += $(shell getconf LFS_CFLAGS) +-CFLAGS += -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE +-LDFLAGS += $(shell getconf LFS_LDFLAGS) ++CFLAGS += -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 + + # 32-bit x86 does not perform well with -ve segment accesses on Xen. + CFLAGS-$(CONFIG_X86_32) += $(call cc-option,$(CC),-mno-tls-direct-seg-refs) -- cgit v1.2.3