diff options
author | midipix <writeonce@midipix.org> | 2015-03-15 20:46:36 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2015-03-15 20:46:36 -0400 |
commit | 607827292053aa25d0f0300add0798dd085a9131 (patch) | |
tree | e73ffbc6e610091dcc7dc9a5f0379f996d98025c /libobjc/Makefile.in | |
parent | 4cdf4f4f006da014238394af84268dad91f6a79d (diff) | |
download | cbb-gcc-4.6.4-607827292053aa25d0f0300add0798dd085a9131.tar.bz2 cbb-gcc-4.6.4-607827292053aa25d0f0300add0798dd085a9131.tar.xz |
compiler building blocks: add support for custom build variables.
feature detection: set a fallback value of 'yes' to modern assembler
presence, PE dward support, libc-provided stack protector, and
dynamic-loader header iteration.
signed-off by Z. Gilboa; see copying.midipix (9cd0746c) for additional information.
Diffstat (limited to 'libobjc/Makefile.in')
-rw-r--r-- | libobjc/Makefile.in | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/libobjc/Makefile.in b/libobjc/Makefile.in index b33c989e6..592dd7ded 100644 --- a/libobjc/Makefile.in +++ b/libobjc/Makefile.in @@ -22,6 +22,12 @@ #Makefile.in files. Some of this stuff may be unnecessary and #worthless. + +# Compiler Building Blocks variables +cbb_xgcc_for_specs = @cbb_xgcc_for_specs@ +cbb_ldflags_for_target = @cbb_ldflags_for_target@ + + SHELL = @SHELL@ MAKEOVERRIDES= @@ -207,11 +213,16 @@ OBJS_GC = \ ## The rules to build ## +# cbb: allow using a target-specific compiler +ifeq ($(GCC_FOR_TARGET),) +GCC_FOR_TARGET = $(CC) +endif + # Flags to pass to a recursive make. FLAGS_TO_PASS = \ "AR=$(AR)" \ "AR_FLAGS=$(AR_FLAGS)" \ - "CC=$(CC)" \ + "CC=$(GCC_FOR_TARGET)" \ "CFLAGS=$(CFLAGS)" \ "DESTDIR=$(DESTDIR)" \ "LIBCFLAGS=$(LIBCFLAGS)" \ @@ -321,7 +332,7 @@ install-html: install-pdf: install-info: -LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS)) +LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS)) $(cbb_ldflags_for_target) libobjc$(libsuffix).la: $(OBJS) $(LIBTOOL_LINK) $(CC) -o $@ $(OBJS) \ |