unknown to me symbols __libc_init and __setfpucw are available only
in the static version of libc. This fixes linking bin2obj. It should
be possible to do it better, this is a hack.
- Release 2.
Changed files:
fpc-glibc.patch -> 1.1
fpc.spec -> 1.16
--- /dev/null
+--- utils/Makefile~ Fri Dec 15 21:26:43 2000
++++ utils/Makefile Wed Dec 12 21:16:28 2001
+@@ -1037,6 +1037,14 @@
+ $(COMPILER) $< $(REDIR)
+ $(EXECPPAS)
+
++# Workaround for newer versions of glibc. For a reason unknown to me
++# symbols __libc_init and __setfpucw are available only in the static
++# version of libc.
++bin2obj$(EXEEXT): bin2obj.pp
++ $(COMPILER) $< -s $(REDIR)
++ echo 'INPUT(/usr/lib/libc.a)' >>link.res
++ ./ppas.sh
++
+ #####################################################################
+ # Library
+ #####################################################################
Summary(pl): 32 bitowy kompilator dla procesorów i386 i m68k
Name: fpc
Version: 1.0.4
-Release: 1
+Release: 2
License: GPL
Group: Development/Languages
Group(de): Entwicklung/Sprachen
Source0: ftp://ftp.freepascal.org/pub/fpc/dist/Linux/%{name}-%{version}.ELF.tar
Source1: %{name}-sample.cfg
Patch0: %{name}-poptasm.patch
+Patch1: %{name}-glibc.patch
URL: http://www.freepascal.org/
Requires: gcc >= 2.95.2
BuildRequires: bin86
cd src/%{name}-%{version}
%patch0 -p0
+%patch1 -p0
%build
if [ "%{_build_cpu}" = "m68k" ]; then