Origin: vendor
Bug-Debian: 764509
Forwarded: no
Last-Update: 2014-10-09
We need to link agaisnt -lgcc, on at least hppa.
We also link against -lc and -Wl,--as-needed, this way we pull the
required fortified functions from the internal libc_nonshared.a, but
do not link against the shared library because we do not use any of
its symbols.
Gbp-Pq: Name 01_link_libs.patch
CFLAGS += -nostdlib -nostartfiles -Wall -I. -fPIC
SO_CFLAGS=-shared $(CFLAGS)
L_CFLAGS=$(CFLAGS)
-LINK_FLAGS=
+LINK_FLAGS=-Wl,--as-needed -lgcc -lc
LINK_FLAGS+=$(LDFLAGS)
soname=libaio.so.1