patches/glibc/2.3.6/310-_begin-missing.patch
author Darcy Watkins <dwatkins@tranzeo.com>
Thu Aug 05 18:19:07 2010 +0200 (2010-08-05)
changeset 2070 bcd33fce4db9
permissions -rw-r--r--
cc/gcc: with static ppl, correctly link with libm

On some Fedora boxen (at least FC13), it is also required
to link with libm when static ppl is used.
     1 diff -ru glibc-2.3.6/elf/Makefile glibc-2.3.6.patched/elf/Makefile
     2 --- glibc-2.3.6/elf/Makefile	2010-05-02 18:58:38.000000000 -0400
     3 +++ glibc-2.3.6.patched/elf/Makefile	2010-05-02 18:54:54.000000000 -0400
     4 @@ -292,7 +292,7 @@
     5  		  $(LDFLAGS-rtld) -Wl,-z,defs -Wl,--verbose 2>&1 |	\
     6  		  LC_ALL=C \
     7  		  sed -e '/^=========/,/^=========/!d;/^=========/d'	\
     8 -		      -e 's/\. = 0 + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' \
     9 +		      -e 's/\. = .* + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' \
    10  		  > $@.lds
    11  	$(LINK.o) -nostdlib -nostartfiles -shared -o $@			\
    12  		  $(LDFLAGS-rtld) -Wl,-z,defs $(z-now-$(bind-now))	\