enforce usage of our c(xx)flags
This commit is contained in:
parent
e3a663408a
commit
6d7ae7f1dd
11
uuid.spec
11
uuid.spec
@ -10,7 +10,7 @@
|
||||
|
||||
Name: uuid
|
||||
Version: 1.6.2
|
||||
Release: 11%{?dist}
|
||||
Release: 12%{?dist}
|
||||
Summary: Universally Unique Identifier library
|
||||
License: MIT
|
||||
Group: System Environment/Libraries
|
||||
@ -135,6 +135,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 \
|
||||
@ -143,7 +145,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
|
||||
@ -158,7 +160,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
|
||||
@ -277,6 +279,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_libdir}/libossp-uuid_dce.so
|
||||
|
||||
%changelog
|
||||
* Tue Jun 19 2012 Michal Hlavinka <mhlavink@redhat.com> - 1.6.2-12
|
||||
- enforce usage of our c(xx)flags
|
||||
|
||||
* Tue Jun 19 2012 Michal Hlavinka <mhlavink@redhat.com> - 1.6.2-11
|
||||
- fix debuginfo
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user