[Cbe-oss-dev] [PATCH 01/28]MARS/dist: spec add build id

Yuji Mano yuji.mano at am.sony.com
Fri Feb 6 13:30:10 EST 2009


From: Kazunori Asayama <asayama at sm.sony.co.jp>

Generate build id note in RPM

Some distributions require to generate the build id note in executalbe
files. This patch adds the --build-id linker option to the RPM spec
file.

Signed-off-by: Kazunori Asayama <asayama at sm.sony.co.jp>
---
 mars.spec.in |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Index: b/mars.spec.in
===================================================================
--- a/mars.spec.in	2009-01-29 18:34:57.000000000 +0900
+++ b/mars.spec.in	2009-01-29 18:58:59.000000000 +0900
@@ -58,7 +58,9 @@ PPU_CFLAGS='-m64'
 %endif
 
 %define mars_configure_opts \\\
-	PPU_CC="$PPU_CC" PPU_CFLAGS="$PPU_CFLAGS -g -O2" \\\
+	PPU_CC="$PPU_CC" \\\
+	PPU_CFLAGS="$PPU_CFLAGS -g -O2" \\\
+	PPU_LDFLAGS="-Wl,--build-id" \\\
 	--host=%{_host} \\\
 	--build=%{_build} \\\
 	--prefix=%{_prefix} \\\
@@ -104,6 +106,9 @@ rm -rf %{buildroot}
 %{_datadir}/%{name}-%{version}/samples/*
 
 %changelog
+* Thu Jan 29 2009 Kazunori Asayama <asayama at sm.sony.co.jp> - 1.1.1-1
+- Add --build-id linker option.
+
 * Thu Dec 25 2008 Kazunori Asayama <asayama at sm.sony.co.jp> - 1.1.0-2
 - Support top level Makefile and configure.
 







More information about the cbe-oss-dev mailing list