SPECS: libf2c.spec - don't put main() into shared library - use se...

qboosh qboosh at pld-linux.org
Sun Jul 23 21:53:06 CEST 2006


Author: qboosh                       Date: Sun Jul 23 19:53:06 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- don't put main() into shared library - use separate static libf2cmain.a for it

---- Files affected:
SPECS:
   libf2c.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SPECS/libf2c.spec
diff -u SPECS/libf2c.spec:1.1 SPECS/libf2c.spec:1.2
--- SPECS/libf2c.spec:1.1	Sun Jul 23 20:40:19 2006
+++ SPECS/libf2c.spec	Sun Jul 23 21:53:01 2006
@@ -54,6 +54,8 @@
 	CC="%{__cc}" \
 	CFLAGS="%{rpmcflags} -fPIC"
 
+ar crs libf2cmain.a main.o getarg_.o iargc_.o
+rm -f main.o getarg_.o iargc_.o
 %{__cc} -shared -o libf2c.so.0.23 *.o -Wl,-soname=libf2c.so.0 -lm
 rm -f libf2c.a *.o
 
@@ -67,7 +69,7 @@
 
 install libf2c.so.0.23 $RPM_BUILD_ROOT%{_libdir}
 ln -sf libf2c.so.0.23 $RPM_BUILD_ROOT%{_libdir}/libf2c.so
-install libf2c.a $RPM_BUILD_ROOT%{_libdir}
+install libf2c.a libf2cmain.a $RPM_BUILD_ROOT%{_libdir}
 install f2c.h $RPM_BUILD_ROOT%{_includedir}
  
 %clean
@@ -84,6 +86,7 @@
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libf2c.so
+%{_libdir}/libf2cmain.a
 %{_includedir}/f2c.h
 
 %files static
@@ -96,6 +99,8 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2006/07/23 19:53:01  qboosh
+- don't put main() into shared library - use separate static libf2cmain.a for it
+
 Revision 1.1  2006/07/23 18:40:19  qboosh
 - new, partially inspired by f2c.spec
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/libf2c.spec?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list