rpms/open-cobol/devel open-cobol.spec,1.1,1.2

Jochen Schmitt s4504kr at fedoraproject.org
Thu Sep 11 20:22:05 UTC 2008


Author: s4504kr

Update of /cvs/extras/rpms/open-cobol/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv3826

Modified Files:
	open-cobol.spec 
Log Message:
Set -D__NO_STRING_INLINES for i86 systems


Index: open-cobol.spec
===================================================================
RCS file: /cvs/extras/rpms/open-cobol/devel/open-cobol.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- open-cobol.spec	10 Sep 2008 16:28:58 -0000	1.1
+++ open-cobol.spec	11 Sep 2008 20:21:34 -0000	1.2
@@ -2,7 +2,7 @@
 
 Name:		open-cobol
 Version:	1.0.90
-Release:	2%{?dist}
+Release:	3%{?dist}
 Summary:	OpenCOBOL - COBOL compiler
 
 Group:		Development/Languages
@@ -45,12 +45,20 @@
 
 %prep
 %setup -q -n %{name}-%{cobvers}
+(cd libcob; sed -i -e 's/\-\-mode=compile $(CC)/--mode=compile $(CC) -no-suppress/g' Makefile.in)
 
 %build
 %configure --disable-rpath
 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
-make %{?_smp_mflags}
+
+# set -D__NO_STRING_LINES for i86 systems
+
+%ifarch %{ix86}
+BUILDFLAGS="-D__NO_STRING_INLINES=1"
+%endif
+
+make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS $BUILDFLAGS"
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -96,6 +104,9 @@
 %postun -n libcob -p /sbin/ldconfig
 
 %changelog
+* Thu Sep 11 2008 Jochen Schmitt <Jochen herr-schmitt de> 1.0.90-3
+- Add -D__NO_STRING_INLINES for the i86 arch
+
 * Sun Aug 17 2008 Jochen Schmitt <Jochen herr-schmitt de> 1.0.90-2
 - Fix dependency open-cobol -> libcob
 




More information about the fedora-extras-commits mailing list