+%define keepstatic 1
Name: libgc
Version: 8.0.4
Release: 0
automatically recycles memory when it determines that it can no longer
be otherwise accessed.
-
%package devel
Summary: A garbage collector for C and C++
Group: Development/Libraries/C and C++
automatically recycles memory when it determines that it can no longer
be otherwise accessed.
+%package devel-static
+Summary: A garbage collector for C and C++
+Group: Development/Libraries/C and C++
+Provides: gc:/usr/include/gc/gc.h
+Requires: glibc-devel-static
+Requires: %{name}-devel = %version
+
+%description devel-static
+The Boehm-Demers-Weiser conservative garbage collector can be used as a
+garbage collecting replacement for C malloc or C++ new. It allows you
+to allocate memory basically as you normally would, without explicitly
+deallocating memory that is no longer useful. The collector
+automatically recycles memory when it determines that it can no longer
+be otherwise accessed.
+
%prep
%setup -q -n %{name}-%{version}
cp %{SOURCE1001} .
# refresh auto*/libtool to purge rpaths
rm -f libtool libtool.m4
-%reconfigure --disable-static \
+%reconfigure --enable-static \
--with-pic \
--with-gnu-ld \
--enable-cplusplus \
--enable-large-config \
--enable-threads=posix \
- --enable-parallel-mark
+ --enable-parallel-mark \
+ --disable-rpath
%{__make} %{?_smp_mflags}
%_libdir/libcord.so.1*
%_libdir/libgc*.so.1*
-%files -n libgc-devel
+%files devel
%defattr(-, root, root)
%manifest %{name}.manifest
%_libdir/libcord.so
%_includedir/gc.h
%_includedir/gc_cpp.h
%_includedir/gc/
+
+%files devel-static
+%defattr(-, root, root)
+%manifest %{name}.manifest
+%_libdir/libcord.a
+%_libdir/libgc.a
+%_libdir/libgccpp.a
+%_libdir/libgctba.a