diff options
author | Florian Weimer <fweimer@redhat.com> | 2016-09-21 10:45:32 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2016-09-21 10:45:32 +0200 |
commit | fc3e1337be1c6935ab58bd13520f97a535cf70cc (patch) | |
tree | 05a5860b2b10ad95a4ae6b23012a3019d8830f84 /Makerules | |
parent | 612148c6608fb2df34a8d01ccb3b552cd63eb263 (diff) | |
download | glibc-fc3e1337be1c6935ab58bd13520f97a535cf70cc.zip glibc-fc3e1337be1c6935ab58bd13520f97a535cf70cc.tar.gz glibc-fc3e1337be1c6935ab58bd13520f97a535cf70cc.tar.bz2 |
Avoid running $(CXX) during build to obtain header file paths
This reduces the build time somewhat and is particularly noticeable
during rebuilds with few code changes.
Diffstat (limited to 'Makerules')
-rw-r--r-- | Makerules | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -121,14 +121,10 @@ ifneq (,$(CXX)) # will be used instead of /usr/include/stdlib.h and /usr/include/math.h. before-compile := $(common-objpfx)cstdlib $(common-objpfx)cmath \ $(before-compile) -cstdlib=$(shell echo "\#include <cstdlib>" | $(CXX) -M -MP -x c++ - \ - | sed -n "/cstdlib:/{s/:$$//;p}") -$(common-objpfx)cstdlib: $(cstdlib) +$(common-objpfx)cstdlib: $(c++-cstdlib-header) $(INSTALL_DATA) $< $@T $(move-if-change) $@T $@ -cmath=$(shell echo "\#include <cmath>" | $(CXX) -M -MP -x c++ - \ - | sed -n "/cmath:/{s/:$$//;p}") -$(common-objpfx)cmath: $(cmath) +$(common-objpfx)cmath: $(c++-cmath-header) $(INSTALL_DATA) $< $@T $(move-if-change) $@T $@ endif |