[uuid/f16] enforce usage of our c(xx)flags
Michal Hlavinka
mhlavink at fedoraproject.org
Tue Jun 19 13:14:59 UTC 2012
commit 58fe4af6310e0ce00406ddfefdb482fa9424b25b
Author: Michal Hlavinka <mhlavink at redhat.com>
Date: Tue Jun 19 15:14:57 2012 +0200
enforce usage of our c(xx)flags
uuid.spec | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/uuid.spec b/uuid.spec
index 18ac83c..4842578 100644
--- a/uuid.spec
+++ b/uuid.spec
@@ -3,7 +3,7 @@
Name: uuid
Version: 1.6.2
-Release: 8%{?dist}
+Release: 9%{?dist}
Summary: Universally Unique Identifier library
License: MIT
Group: System Environment/Libraries
@@ -126,6 +126,8 @@ export DCE_NAME=libossp-uuid_dce.la
export CXX_NAME=libossp-uuid++.la
export PHP_NAME=$(pwd)/php/modules/ossp-uuid.so
export PGSQL_NAME=$(pwd)/pgsql/libossp-uuid.so
+export CFLAGS="$RPM_OPT_FLAGS"
+export CXXFLAGS="$RPM_OPT_FLAGS"
%configure \
--disable-static \
--without-perl \
@@ -134,7 +136,7 @@ export PGSQL_NAME=$(pwd)/pgsql/libossp-uuid.so
--with-cxx \
--with-pgsql
-make LIBTOOL=/usr/bin/libtool %{?_smp_mflags}
+make LIBTOOL=/usr/bin/libtool CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" %{?_smp_mflags}
# Build the Perl module.
pushd perl
@@ -149,7 +151,7 @@ export PHP_RPATH=no
phpize
CFLAGS="$RPM_OPT_FLAGS -I.. -L.. -L../.libs"
%configure --enable-uuid
-make %{?_smp_mflags}
+make CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" %{?_smp_mflags}
popd
%install
@@ -266,6 +268,9 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/libossp-uuid_dce.so
%changelog
+* Tue Jun 19 2012 Michal Hlavinka <mhlavink at redhat.com> - 1.6.2-9
+- enforce usage of our c(xx)flags
+
* Tue Jun 19 2012 Michal Hlavinka <mhlavink at redhat.com> - 1.6.2-8
- fix debuginfo
More information about the scm-commits
mailing list