1995-02-18 01:27:10 +00:00
|
|
|
|
# Copyright (C) 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
|
|
|
|
|
# This file is part of the GNU C Library.
|
|
|
|
|
|
|
|
|
|
# The GNU C Library is free software; you can redistribute it and/or
|
|
|
|
|
# modify it under the terms of the GNU Library General Public License as
|
|
|
|
|
# published by the Free Software Foundation; either version 2 of the
|
|
|
|
|
# License, or (at your option) any later version.
|
|
|
|
|
|
|
|
|
|
# The GNU C Library is distributed in the hope that it will be useful,
|
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
# Library General Public License for more details.
|
|
|
|
|
|
|
|
|
|
# You should have received a copy of the GNU Library General Public
|
|
|
|
|
# License along with the GNU C Library; see the file COPYING.LIB. If
|
|
|
|
|
# not, write to the Free Software Foundation, Inc., 675 Mass Ave,
|
|
|
|
|
# Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Makefile configuration options for the GNU C library.
|
|
|
|
|
#
|
|
|
|
|
ifneq (,)
|
|
|
|
|
This makefile requires GNU Make.
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
ifneq "$(origin +included-Makeconfig)" "file"
|
|
|
|
|
|
|
|
|
|
+included-Makeconfig := yes
|
|
|
|
|
|
|
|
|
|
ifdef subdir
|
|
|
|
|
.. := ../
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
# If config.make exists, the source directory was configured,
|
|
|
|
|
# so don't try to be clever and find another directory to build in.
|
|
|
|
|
ifneq (,$(wildcard $(..)config.make))
|
|
|
|
|
ARCH =
|
|
|
|
|
machine =
|
|
|
|
|
else # Not configured.
|
|
|
|
|
ifndef ARCH
|
|
|
|
|
ifdef machine
|
|
|
|
|
ARCH = $(machine)
|
|
|
|
|
endif # machine
|
|
|
|
|
endif # ARCH
|
|
|
|
|
endif # config.make
|
|
|
|
|
|
|
|
|
|
# Directory for object files and libc.a. If this is not defined, the
|
|
|
|
|
# object files live in the subdirectories where their sources live, and
|
|
|
|
|
# libc.a lives in the parent directory (this probably doesn't work any
|
|
|
|
|
# more).
|
|
|
|
|
ifdef ARCH
|
|
|
|
|
ifeq ($(filter /%,$(ARCH)),)
|
|
|
|
|
objdir := $(..)$(ARCH)
|
|
|
|
|
else
|
|
|
|
|
objdir = $(ARCH)
|
|
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
# $(common-objdir) is the place to put objects and
|
|
|
|
|
# such that are not specific to a single subdir.
|
|
|
|
|
ifdef objdir
|
|
|
|
|
objpfx = $(objdir)/
|
|
|
|
|
common-objpfx = $(objpfx)
|
|
|
|
|
common-objdir = $(objdir)
|
|
|
|
|
else
|
|
|
|
|
objpfx :=
|
|
|
|
|
ifdef ..
|
|
|
|
|
common-objpfx = $(..)
|
|
|
|
|
common-objdir = ..
|
|
|
|
|
else
|
|
|
|
|
# This is a kludge. make wizards might grok.
|
|
|
|
|
common-objpfx = sysdeps/../
|
|
|
|
|
common-objdir = .
|
|
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Get the values defined by options to `configure'.
|
|
|
|
|
include $(common-objpfx)config.make
|
|
|
|
|
|
1995-05-09 07:03:38 +00:00
|
|
|
|
# Run config.status to update config.make and config.h. We don't show the
|
|
|
|
|
# dependence of config.h to Make, because it is only touched when it
|
|
|
|
|
# changes and so config.status would be run every time; the dependence of
|
|
|
|
|
# config.make should suffice to force regeneration and re-exec, and the new
|
|
|
|
|
# image will notice if config.h changed.
|
|
|
|
|
$(common-objpfx)config.make: $(common-objpfx)config.status
|
|
|
|
|
cd $(<D); $(SHELL) $(<F)
|
|
|
|
|
|
1995-02-18 01:27:10 +00:00
|
|
|
|
# Force the user to configure before making.
|
1995-05-09 07:03:38 +00:00
|
|
|
|
$(common-objpfx)config.status: $(..)configure
|
|
|
|
|
@cd $(@D); if test -f $(@F); then exec $(SHELL) $(@F) --recheck; else \
|
|
|
|
|
echo The GNU C library has not been configured. >&2; \
|
|
|
|
|
echo Run \`configure\' to configure it before building. >&2; \
|
|
|
|
|
echo Try \`configure --help\' for more details. >&2; \
|
|
|
|
|
exit 1; fi
|
1995-02-18 01:27:10 +00:00
|
|
|
|
|
|
|
|
|
# Get the user's configuration parameters.
|
|
|
|
|
ifneq ($(wildcard $(..)configparms),)
|
|
|
|
|
include $(..)configparms
|
|
|
|
|
endif
|
|
|
|
|
ifneq ($(objpfx),)
|
|
|
|
|
ifneq ($(wildcard $(objpfx)configparms),)
|
|
|
|
|
include $(objpfx)configparms
|
|
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
sysdep_dir := $(..)sysdeps
|
|
|
|
|
export sysdep_dir := $(sysdep_dir)
|
|
|
|
|
|
|
|
|
|
####
|
|
|
|
|
#### These are the configuration variables. You can define values for
|
|
|
|
|
#### the variables below in the file `configparms'.
|
|
|
|
|
#### Do NOT edit this file.
|
|
|
|
|
####
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Common prefix for machine-independent installation directories.
|
1995-06-22 09:00:11 +00:00
|
|
|
|
ifeq ($(origin prefix),undefined) # ifndef would override explicit empty value.
|
1995-02-18 01:27:10 +00:00
|
|
|
|
prefix = /usr/local
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
# Common prefix for machine-dependent installation directories.
|
1995-06-22 09:00:11 +00:00
|
|
|
|
ifeq ($(origin exec_prefix),undefined)
|
1995-02-18 01:27:10 +00:00
|
|
|
|
exec_prefix = $(prefix)
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
# Where to install the library and object files.
|
|
|
|
|
ifndef libdir
|
|
|
|
|
libdir = $(exec_prefix)/lib
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
# Prefix to put on files installed in $(libdir). For libraries `libNAME.a',
|
|
|
|
|
# the prefix is spliced between `lib' and the name, so the linker switch
|
|
|
|
|
# `-l$(libprefix)NAME' finds the library; for other files the prefix is
|
|
|
|
|
# just prepended to the whole file name.
|
1995-06-22 09:00:11 +00:00
|
|
|
|
ifeq ($(origin libprefix),undefined)
|
1995-02-18 01:27:10 +00:00
|
|
|
|
libprefix =
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
# Where to install the header files.
|
|
|
|
|
ifndef includedir
|
|
|
|
|
includedir = $(exec_prefix)/include
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
# Where to install machine-independent data files.
|
1995-05-20 00:13:43 +00:00
|
|
|
|
# These are the timezone database, and the locale database.
|
1995-02-18 01:27:10 +00:00
|
|
|
|
ifndef datadir
|
|
|
|
|
datadir = $(prefix)/share
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
# Where to install the timezone data files (which are machine-independent).
|
|
|
|
|
ifndef zonedir
|
|
|
|
|
zonedir = $(datadir)/zoneinfo
|
|
|
|
|
endif
|
|
|
|
|
|
1995-09-28 09:00:19 +00:00
|
|
|
|
# Where to install the locale and message catalog data files (which are
|
|
|
|
|
# machine-independent).
|
1995-05-20 00:13:43 +00:00
|
|
|
|
ifndef localedir
|
|
|
|
|
localedir = $(datadir)/locale
|
|
|
|
|
endif
|
|
|
|
|
|
1995-09-28 09:00:19 +00:00
|
|
|
|
# Where to install the locale charmap source files.
|
1995-05-20 00:13:43 +00:00
|
|
|
|
ifndef nlsdir
|
|
|
|
|
nlsdir = $(datadir)/nls
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
1995-02-18 01:27:10 +00:00
|
|
|
|
# Where to install programs.
|
|
|
|
|
ifndef bindir
|
|
|
|
|
bindir = $(exec_prefix)/bin
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
# Where to install administrative programs.
|
|
|
|
|
ifndef sbindir
|
|
|
|
|
sbindir = $(exec_prefix)/sbin
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
# Where to install the Info files.
|
|
|
|
|
ifndef infodir
|
|
|
|
|
infodir = $(prefix)/info
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
# Where to install default configuration files. These include the local
|
|
|
|
|
# timezone specification and network data base files.
|
|
|
|
|
ifndef sysconfdir
|
|
|
|
|
sysconfdir = $(prefix)/etc
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
# What timezone should be the installed default (e.g., US/Eastern).
|
|
|
|
|
# Run `make -C time echo-zonenames' to see a list of available zone names.
|
|
|
|
|
# The local timezone can be changed with `zic -l TIMEZONE' at any time.
|
|
|
|
|
ifndef localtime
|
|
|
|
|
localtime = Factory
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
# Where to install the "localtime" timezone file; this is the file whose
|
|
|
|
|
# contents $(localtime) specifies. If this is a relative pathname, it is
|
|
|
|
|
# relative to $(zonedir). It is a good idea to put this somewhere
|
|
|
|
|
# other than there, so the zoneinfo directory contains only universal data,
|
|
|
|
|
# localizing the configuration data elsewhere.
|
|
|
|
|
ifndef localtime-file
|
|
|
|
|
localtime-file = $(sysconfdir)/localtime
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
# What timezone's DST rules should be used when a POSIX-style TZ
|
|
|
|
|
# environment variable doesn't specify any rules. For 1003.1 compliance
|
|
|
|
|
# this timezone must use rules that are as U.S. federal law defines DST.
|
|
|
|
|
# Run `make -C time echo-zonenames' to see a list of available zone names.
|
|
|
|
|
# This setting can be changed with `zic -p TIMEZONE' at any time.
|
|
|
|
|
# If you want POSIX.1 compatibility, use `America/New_York'.
|
|
|
|
|
ifndef posixrules
|
|
|
|
|
posixrules = America/New_York
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
# Where to install the "posixrules" timezone file; this is file
|
|
|
|
|
# whose contents $(posixrules) specifies. If this is a relative
|
|
|
|
|
# pathname, it is relative to $(zonedir).
|
|
|
|
|
ifndef posixrules-file
|
|
|
|
|
posixrules-file = posixrules
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Directory where your system's native header files live.
|
|
|
|
|
# This is used on Unix systems to generate some GNU libc header files.
|
|
|
|
|
ifndef sysincludedir
|
|
|
|
|
sysincludedir = /usr/include
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Commands to install files.
|
|
|
|
|
ifndef INSTALL_DATA
|
|
|
|
|
INSTALL_DATA = $(INSTALL) -m 644
|
|
|
|
|
endif
|
|
|
|
|
ifndef INSTALL_PROGRAM
|
|
|
|
|
INSTALL_PROGRAM = $(INSTALL)
|
|
|
|
|
endif
|
|
|
|
|
ifndef INSTALL
|
|
|
|
|
INSTALL = install
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# The name of the C compiler.
|
|
|
|
|
# If you've got GCC, and it works, use it.
|
|
|
|
|
ifeq ($(origin CC),default)
|
|
|
|
|
CC := gcc
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
# The name of the C compiler to use for compilations of programs to run on
|
|
|
|
|
# the host that is building the library. If you set CC to a
|
|
|
|
|
# cross-compiler, you must set this to the normal compiler.
|
|
|
|
|
ifndef BUILD_CC
|
|
|
|
|
BUILD_CC = $(CC)
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
# Default flags to pass the C compiler.
|
|
|
|
|
ifndef default_cflags
|
|
|
|
|
default_cflags := -g
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
# Flags to pass the C compiler when assembling preprocessed assembly code
|
|
|
|
|
# (`.S' files). On some systems the assembler doesn't understand the `#' line
|
|
|
|
|
# directives the preprocessor produces. If you have troubling compiling
|
|
|
|
|
# assembly code, try using -P here to suppress these directives.
|
|
|
|
|
ifndef asm-CPPFLAGS
|
|
|
|
|
asm-CPPFLAGS =
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
# Command for linking programs with the C library.
|
|
|
|
|
ifndef +link
|
1995-10-11 03:34:46 +00:00
|
|
|
|
+link = $(CC) -nostdlib -nostartfiles -o $@ \
|
|
|
|
|
$(sysdep-LDFLAGS) $(config-LDFLAGS) $(LDFLAGS) \
|
|
|
|
|
$(addprefix $(csu-objpfx),start.o $(+preinit)) \
|
|
|
|
|
$(^:$(common-objpfx)libc.a=$(link-libc)) \
|
|
|
|
|
$(addprefix $(csu-objpfx),$(+postinit))
|
1995-02-18 01:27:10 +00:00
|
|
|
|
endif
|
1995-10-09 07:06:29 +00:00
|
|
|
|
ifndef config-LDFLAGS
|
|
|
|
|
ifeq (yes,$(build-shared))
|
1995-10-11 05:53:53 +00:00
|
|
|
|
config-LDFLAGS = -Wl,-dynamic-linker=$(libdir)/$(rtld-installed-name)
|
1995-10-09 07:06:29 +00:00
|
|
|
|
endif
|
|
|
|
|
endif
|
1995-08-17 22:55:22 +00:00
|
|
|
|
ifndef link-libc
|
|
|
|
|
ifeq (yes,$(build-shared))
|
1995-10-11 03:34:46 +00:00
|
|
|
|
link-libc = -Wl,-rpath-link=$(common-objdir) -Wl,-rpath=$(libdir) \
|
|
|
|
|
$(common-objpfx)libc.so $(gnulib)
|
1995-08-17 22:55:22 +00:00
|
|
|
|
else
|
|
|
|
|
link-libc = $(common-objpfx)libc.a $(gnulib) $(common-objpfx)libc.a
|
|
|
|
|
endif
|
|
|
|
|
endif
|
1995-02-18 01:27:10 +00:00
|
|
|
|
ifndef gnulib
|
|
|
|
|
gnulib := -lgcc
|
|
|
|
|
endif
|
1995-02-20 10:23:07 +00:00
|
|
|
|
ifeq ($(elf),yes)
|
|
|
|
|
+preinit = crti.o
|
|
|
|
|
+postinit = crtn.o
|
|
|
|
|
endif
|
|
|
|
|
ifdef objpfx
|
|
|
|
|
csu-objpfx = $(objpfx)
|
|
|
|
|
else
|
1995-04-08 19:09:39 +00:00
|
|
|
|
csu-objpfx = $(..)csu/
|
1995-02-20 10:23:07 +00:00
|
|
|
|
endif
|
1995-02-18 01:27:10 +00:00
|
|
|
|
|
1995-10-09 07:06:29 +00:00
|
|
|
|
ifeq (yes,$(build-shared))
|
|
|
|
|
ifndef rtld-installed-name
|
|
|
|
|
rtld-installed-name = ld.so
|
|
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
|
1995-02-18 01:27:10 +00:00
|
|
|
|
ifndef LD
|
|
|
|
|
LD := ld -X
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
ifndef RANLIB
|
|
|
|
|
RANLIB = ranlib
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
# Extra flags to pass to GCC.
|
1995-09-18 19:06:33 +00:00
|
|
|
|
+gccwarn := -Wall -Wwrite-strings -Wno-parentheses -Winline
|
1995-02-18 01:27:10 +00:00
|
|
|
|
|
|
|
|
|
# This is the program that generates makefile
|
|
|
|
|
# dependencies from C source files.
|
|
|
|
|
ifndef +mkdep
|
|
|
|
|
+mkdep = $(CC) -M
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
# The program that makes Emacs-style TAGS files.
|
|
|
|
|
ETAGS := etags -T
|
|
|
|
|
|
|
|
|
|
# The `m4' macro processor; this is used by sysdeps/sparc/Makefile (and
|
|
|
|
|
# perhaps others) to preprocess assembly code in some cases.
|
|
|
|
|
M4 = m4
|
|
|
|
|
|
|
|
|
|
####
|
|
|
|
|
#### End of configuration variables.
|
|
|
|
|
####
|
|
|
|
|
|
|
|
|
|
# This tells some versions of GNU make before 3.63 not to export all variables.
|
|
|
|
|
.NOEXPORT:
|
|
|
|
|
|
|
|
|
|
# We want to echo the commands we're running without
|
|
|
|
|
# umpteem zillion filenames along with it (we use `...' instead)
|
|
|
|
|
# but we don't want this echoing done when the user has said
|
|
|
|
|
# he doesn't want to see commands echoed by using -s.
|
|
|
|
|
ifneq "$(findstring s,$(MAKEFLAGS))" "" # if -s
|
|
|
|
|
+cmdecho := echo >/dev/null
|
|
|
|
|
else # not -s
|
|
|
|
|
+cmdecho := echo
|
|
|
|
|
endif # -s
|
|
|
|
|
|
|
|
|
|
# These are the flags given to the compiler to tell
|
|
|
|
|
# it what sort of optimization and/or debugging output to do.
|
|
|
|
|
ifndef +cflags
|
|
|
|
|
# If `CFLAGS' was defined, use that.
|
|
|
|
|
ifdef CFLAGS
|
|
|
|
|
+cflags := $(filter-out -I%,$(CFLAGS))
|
|
|
|
|
endif # CFLAGS
|
|
|
|
|
endif # +cflags
|
|
|
|
|
|
|
|
|
|
# If none of the above worked, default to "-g".
|
|
|
|
|
ifeq "$(strip $(+cflags))" ""
|
|
|
|
|
+cflags := $(default_cflags)
|
|
|
|
|
endif # $(+cflags) == ""
|
|
|
|
|
|
|
|
|
|
# If using gcc, add flags that only it will grok.
|
|
|
|
|
ifneq "$(findstring gcc,$(CC))" ""
|
|
|
|
|
+cflags := $(+cflags) $(+gccwarn)
|
|
|
|
|
+gcc-nowarn := -w
|
|
|
|
|
else
|
|
|
|
|
+gcc-nowarn :=
|
|
|
|
|
endif # gcc
|
|
|
|
|
|
|
|
|
|
# Don't duplicate options if we inherited variables from the parent.
|
|
|
|
|
+cflags := $(sort $(+cflags))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# These are flags given to the C compiler to tell it to look for include
|
|
|
|
|
# files (including ones given in angle brackets) in the current directory
|
|
|
|
|
# and in the parent library source directory.
|
|
|
|
|
# `+sysdep-includes' will be defined by Makerules.
|
|
|
|
|
+includes = -I. $(filter-out -I,-I$(patsubst %/,%,$(..))) \
|
|
|
|
|
$(includes) $(+sysdep-includes) $(last-includes)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# These are the variables that the implicit compilation rules use.
|
|
|
|
|
CPPFLAGS = $(+includes) $(defines) -include $(..)libc-symbols.h \
|
1995-04-12 01:03:38 +00:00
|
|
|
|
$(sysdep-CPPFLAGS) $(CPPFLAGS-$(suffix $@))
|
|
|
|
|
override CFLAGS = $(+cflags) $(sysdep-CFLAGS) $(CFLAGS-$(suffix $@))
|
1995-02-18 01:27:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# This is the macro that the implicit linking rules use.
|
|
|
|
|
ifneq "$(filter -g,$(+cflags))" "" # -g is in $(+cflags)
|
|
|
|
|
LDFLAGS := -g
|
|
|
|
|
endif
|
|
|
|
|
|
Thu Mar 16 00:04:41 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* locale/C-ctype.c: New correct data generated by drepper.
* Rules: Don't use $(libc.a).
Parsing of grouped numbers contributed by Ulrich Drepper.
* stdlib/strtol.c (__strtol_internal): Renamed from strtol. Take
new flag arg; if nonzero, parse locale-dependent thousands
grouping and interpret only the prefix that is correctly grouped.
(strtol): Define this to call _strtol_internal with zero for the flag.
Use a weak symbol for the definition.
* stdlib/strtod.c (strtod, __strtod_internal): Likewise.
Check for the exponent of the number overflowing the float format.
* stdlib/stdlib.h (__strtof, __strtold): Declarations removed.
(__strto{f,d,ld,l,ul,q,uq}_internal): Declare these functions.
[__OPTIMIZE__]: Define inline functions calling those.
* stdlib/grouping.h: New file, written by drepper.
* stdlib/Makefile (distribute): Add grouping.h.
* stdio/vfscanf.c: Grok %' modifier to numeric conversions. Call
__strtoX_internal with the grouping flag set iff the modifier is
present.
Wed Mar 15 00:40:54 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* sysdeps/generic/memchr.c: Fix typos: limit.h -> limits.h.
* mach/Machrules: Produce static deps for all object flavors.
[interface-library]: Remove all these variables and rules.
($(interface-library)-routines): Define this variable.
(extra-libs): Append $(interface-library) to this.
* mach/Makefile (interface-library): Omit .a suffix.
* hurd/Makefile: Likewise.
Tue Mar 14 23:40:31 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* stdio/internals.c (flushbuf): If !FLUSH_ONLY, don't skip out
early if no new data in buffer after priming.
* Makerules (object-suffixes, libtypes): Move all these variables
to Makeconfig.
* Makeconfig (object-suffixes, libtypes): Moved here from Makerules.
* Makerules (build-extra-lib): New canned sequence.
* sysdeps/mach/hurd/euidaccess.c: Include fcntl.h. Declare ERR;
fix uses of FILE and PORT. Remove bogus weak alias for `access'.
* sysdeps/mach/hurd/dirfd.c: Include hurd/fd.h and errno.h.
Add missing semicolon.
* sysdeps/mach/hurd/opendir.c: Include hurd/fd.h. Use a `struct
hurd_fd *' temp var, since DIRP->__fd is a `void *'.
* sysdeps/mach/hurd/readdir.c: Include hurd/fd.h.
* stdlib/wcstombs.c: #if 0 out code for non-ASCII chars until the
locale data format is implemented.
* sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
Pass &__sigreturn on the stack to the trampoline code, so it is
not position-dependent.
* stdio/printf_fp.c (NDEBUG): Define this to disable assert.
Don't include <stdarg.h>.
(__printf_fp): Last arg ARGS is now `const void **const';
dereference ARGS[0] instead of using va_arg.
* locale/setlocale.c: In LC_ALL case, initialize CATEGORY before
loop to install data.
* locale/loadlocale.c (_nl_category_num_items): Use _NL_ITEM_INDEX
to extract number from item code.
(_nl_load_locale): Close the descriptor when finished.
* malloc/realloc.c (_realloc_internal): Call _malloc_internal in
place of malloc.
* time/tzfile.c (__tzfile_default): Initialize RULE_STDOFF to zero.
1995-03-16 05:32:45 +00:00
|
|
|
|
|
|
|
|
|
# Enable object files for different versions of the library.
|
|
|
|
|
# Various things use $(object-suffixes) to know what all to make.
|
|
|
|
|
# The compilation rules use $(CPPFLAGS-${SUFFIX}) and $(CFLAGS-${SUFFIX})
|
|
|
|
|
# to pass different flags for each flavor.
|
|
|
|
|
libtypes = $(foreach o,$(object-suffixes),$(libtype$o))
|
|
|
|
|
object-suffixes := .o
|
|
|
|
|
libtype.o := lib%.a
|
|
|
|
|
ifeq (yes,$(build-shared))
|
|
|
|
|
# Under --enable-shared, we will build a shared library of PIC objects.
|
|
|
|
|
# The PIC object files are named foo.so.
|
|
|
|
|
object-suffixes += .so
|
|
|
|
|
CPPFLAGS-.so = -DPIC
|
|
|
|
|
CFLAGS-.so = -fPIC
|
|
|
|
|
libtype.so := lib%_pic.a
|
|
|
|
|
endif
|
|
|
|
|
ifeq (yes,$(build-profile))
|
|
|
|
|
# Under --enable-profile, we will build a static library of profiled objects.
|
|
|
|
|
# The profiled object files are named foo.po.
|
|
|
|
|
object-suffixes += .po
|
|
|
|
|
CFLAGS-.po = -p
|
|
|
|
|
libtype.po = lib%_p.a
|
|
|
|
|
endif
|
|
|
|
|
ifeq (yes,$(build-omitfp))
|
|
|
|
|
# Under --enable-omitfp, we build an the library optimized without
|
|
|
|
|
# debugging information using -fomit-frame-pointer, and build an extra
|
|
|
|
|
# library with debugging information. The debuggable objects are named foo.go.
|
|
|
|
|
object-suffixes += .go
|
|
|
|
|
CFLAGS-.go = -g
|
|
|
|
|
CFLAGS-.o = -g0 -O99 -fomit-frame-pointer
|
|
|
|
|
CFLAGS-.so += $(CFLAGS.o)
|
|
|
|
|
libtype.go = lib%_g.a
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
1995-02-18 01:27:10 +00:00
|
|
|
|
+gnu-stabs = $(shell echo>&2 '*** BARF ON ME')
|
|
|
|
|
|
|
|
|
|
ifneq ($(BUILD_CC),$(CC))
|
|
|
|
|
cross-compiling := yes
|
|
|
|
|
else
|
|
|
|
|
cross-compiling := no
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
endif # Makeconfig not yet included
|