[dyninst/f18] Patch make.config to ensure rpm build flags are not discarded.

Josh Stone jistone at fedoraproject.org
Thu Feb 14 19:58:38 UTC 2013


commit 576d6b7fe55cc0e174bec0d33fc82160c98512ab
Author: Josh Stone <jistone at redhat.com>
Date:   Thu Feb 14 11:36:18 2013 -0800

    Patch make.config to ensure rpm build flags are not discarded.

 dyninst-rpm-build-flags.patch |   15 +++++++++++++++
 dyninst.spec                  |    7 ++++++-
 2 files changed, 21 insertions(+), 1 deletions(-)
---
diff --git a/dyninst-rpm-build-flags.patch b/dyninst-rpm-build-flags.patch
new file mode 100644
index 0000000..56273f3
--- /dev/null
+++ b/dyninst-rpm-build-flags.patch
@@ -0,0 +1,15 @@
+--- dyninst/make.config.buildflags	2013-02-14 11:23:18.717002871 -0800
++++ dyninst/make.config	2013-02-14 11:23:46.588871846 -0800
+@@ -570,9 +570,9 @@ ifeq (ppc64_linux, $(findstring ppc64_li
+ endif
+ 
+ # flags for normal (non-kludge) files, with common warnings
+-CFLAGS		= $(IFLAGS) $(UNIFIED_DEF) $(OPT_FLAG) $(COMMON_WARNINGS) $(ARCH_FLAGS)
+-CXXFLAGS	= $(IFLAGS) $(UNIFIED_DEF) $(OPT_FLAG) $(COMMON_WARNINGS) $(STDINT_MACROS) $(ARCH_FLAGS)
+-LDFLAGS		= $(ARCH_FLAGS)
++CFLAGS		+= $(IFLAGS) $(UNIFIED_DEF) $(OPT_FLAG) $(COMMON_WARNINGS) $(ARCH_FLAGS)
++CXXFLAGS	+= $(IFLAGS) $(UNIFIED_DEF) $(OPT_FLAG) $(COMMON_WARNINGS) $(STDINT_MACROS) $(ARCH_FLAGS)
++LDFLAGS		+= $(ARCH_FLAGS)
+ 
+ # flags for kludge files, won't have warnings generated
+ KFLAGS          = $(IFLAGS) $(UNIFIED_DEF) $(BASICWARNINGS)
diff --git a/dyninst.spec b/dyninst.spec
index a45d494..3960711 100644
--- a/dyninst.spec
+++ b/dyninst.spec
@@ -2,7 +2,7 @@ Summary: An API for Run-time Code Generation
 License: LGPLv2+
 Name: dyninst
 Group: Development/Libraries
-Release: 1%{?dist}
+Release: 4%{?dist}
 URL: http://www.dyninst.org
 Version: 8.0
 Exclusiveos: linux
@@ -20,6 +20,7 @@ ExcludeArch: s390 s390x %{arm}
 #  gunzip -c dyninst-docs-8.0.tar.gz | git get-tar-commit-id
 Source0: %{name}-%{version}.tar.gz
 Source1: %{name}-docs-%{version}.tar.gz
+Patch1: dyninst-rpm-build-flags.patch
 Patch5: dyninst-unused_vars.patch
 BuildRequires: libdwarf-devel >= 20111030
 BuildRequires: elfutils-libelf-devel
@@ -64,6 +65,7 @@ the dyninst user-space libraries and interfaces.
 %setup -q -T -D -a 1
 
 pushd dyninst
+%patch1 -p1 -b .buildflags
 %patch5 -p1 -b .unused
 popd
 
@@ -124,6 +126,9 @@ chmod 644 %{buildroot}%{_libdir}/dyninst/*.a
 %{_libdir}/dyninst/*.a
 
 %changelog
+* Thu Feb 14 2013 Josh Stone <jistone at redhat.com> 8.0-4
+- Patch make.config to ensure rpm build flags are not discarded.
+
 * Tue Nov 20 2012 Josh Stone <jistone at redhat.com>
 - Tweak the configure/make commands
 - Disable the testsuite via configure.


More information about the scm-commits mailing list