aboutsummaryrefslogtreecommitdiff
path: root/Makeconfig
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-05-06 14:43:15 +0000
committerUlrich Drepper <drepper@redhat.com>1998-05-06 14:43:15 +0000
commit6600049466b586e3decaf24bd70c06b21382cf98 (patch)
tree536fc5c8efe78035527223283bcd5a48ac259576 /Makeconfig
parentb22fc5f5651706304ac09305ac3ee5bf84516378 (diff)
downloadglibc-6600049466b586e3decaf24bd70c06b21382cf98.zip
glibc-6600049466b586e3decaf24bd70c06b21382cf98.tar.gz
glibc-6600049466b586e3decaf24bd70c06b21382cf98.tar.bz2
Update.
1998-04-16 07:42 Geoff Keating <geoffk@ozemail.com.au> * Makeconfig [!build-static]: Link `static' binaries with libc_pic.a. Still need *FLAGS-.o because we still sometimes build .o files. * db2/Makefile: Don't build libndbm.a if !build-static. 1998-04-16 07:42 Geoff Keating <geoffk@ozemail.com.au> * configure.in: New test for broken gcc on PowerPC. * sysdeps/powerpc/atomicity.h: Use result of test. * linuxthreads/sysdeps/powerpc/pt-machine.h: Use result of test. * math/libm-test.c: Update many of the epsilon to match actual performance. * sysdeps/libm-ieee754/e_exp.c: Reduce the number of branches. * sysdeps/libm-ieee754/e_expf.c: Likewise. * sysdeps/libm-ieee754/s_exp2.c: Likewise. * sysdeps/libm-ieee754/s_exp2f.c: Likewise. * sysdeps/libm-ieee754/e_pow.c: Correct typo. * sysdeps/powerpc/elf/libc-start.c: New file. * sysdeps/powerpc/elf/start.S: New file, use libc-start. * sysdeps/powerpc/elf/start.c: Delete. * sysdeps/unix/sysv/linux/powerpc/Dist: Remove syscall.h * sysdeps/unix/sysv/linux/powerpc/syscall.h: Delete. It was unused. * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Correct previous few patches.
Diffstat (limited to 'Makeconfig')
-rw-r--r--Makeconfig10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makeconfig b/Makeconfig
index 1a93b0a..1948e79 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -440,8 +440,16 @@ endif
endif
# The static libraries.
+ifeq (yes,$(build-static))
link-libc-static = $(common-objpfx)libc.a $(gnulib) $(common-objpfx)libc.a
link-extra-libs-static = $(foreach lib,$(LDLIBS-$(@F)),$(common-objpfx)$(lib).a)
+else
+ifeq (yes,$(build-shared))
+# We can try to link the programs with lib*_pic.a...
+link-libc-static = $(link-libc) $(common-objpfx)libc_pic.a
+link-extra-libs-static = $(link-extra-libs)
+endif
+endif
ifndef gnulib
gnulib := -lgcc
@@ -584,9 +592,9 @@ endif
libtypes = $(foreach o,$(object-suffixes-for-libc),$(libtype$o))
all-object-suffixes := .o .os .op .og .ob .oS
object-suffixes :=
-ifeq (yes,$(build-static))
CPPFLAGS-.o = $(pic-default)
CFLAGS-.o = $(filter %frame-pointer,$(+cflags))
+ifeq (yes,$(build-static))
libtype.o := lib%.a
object-suffixes += .o
endif