summaryrefslogtreecommitdiff
path: root/sysdeps/posix
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-02-19 22:45:57 +0000
committerRoland McGrath <roland@gnu.org>1995-02-19 22:45:57 +0000
commit50de467103a56c688d52b7b14cea82dba79d1ad4 (patch)
treeec2ff186888dc53415b8f48c8cca9187c08f4396 /sysdeps/posix
parenta06b1633830ce61f81e52180518f63a1b2ea15a6 (diff)
downloadglibc-50de467103a56c688d52b7b14cea82dba79d1ad4.tar.gz
(cded-objdir-includes): New variable replaced cded-objdir-CPPFLAGS; transform $(+includes) instead of $(CPPFLAGS). (mk-stdiolim): Use it instead.
Diffstat (limited to 'sysdeps/posix')
-rw-r--r--sysdeps/posix/Makefile13
1 files changed, 4 insertions, 9 deletions
diff --git a/sysdeps/posix/Makefile b/sysdeps/posix/Makefile
index fd1b3f257a..c925b72697 100644
--- a/sysdeps/posix/Makefile
+++ b/sysdeps/posix/Makefile
@@ -1,4 +1,4 @@
-# Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
+# 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
@@ -20,19 +20,14 @@ $(common-objpfx)stdio_lim.h: $(common-objpfx)mk-stdiolim
$(dir $<)$(notdir $<) > $@-t
mv $@-t $@
-ifdef subdir
-objdir-CPPFLAGS = $(CPPFLAGS) # Already has appropriate `..'s.
-else
-objdir-CPPFLAGS = $(patsubst -I/..//%,-I/%,$(CPPFLAGS:-I%=-I../%))
-endif
# Turn into a version that works when cd'd into $(objdir).
-cded-objdir-CPPFLAGS = $(patsubst -I$$cwd//%,-I/%,\
- $(patsubst -I%,-I$$cwd/%,$(CPPFLAGS)))
+cded-objdir-includes = $(patsubst -I$$cwd//%,-I/%,\
+ $(patsubst -I%,-I$$cwd/%,$(+includes)))
# $(BUILD_CFLAGS) needs to come last because it contains unwanted -Is.
$(common-objpfx)mk-stdiolim: $(sysdep_dir)/posix/mk-stdiolim.c \
posix1_lim.h local_lim.h
cwd=`pwd`; cd $(common-objdir); \
- $(BUILD_CC) $(cded-objdir-CPPFLAGS) $(BUILD_CFLAGS) \
+ $(BUILD_CC) $(cded-objdir-includes) $(BUILD_CFLAGS) \
$$cwd/$< -o $(patsubst $(common-objpfx)%,%,$@)