summaryrefslogtreecommitdiff
path: root/libobjc/Makefile.in
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-04-25 00:21:51 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-04-25 00:21:51 +0000
commitfa7570777056f4866615e0eed9d0b2af725fdabb (patch)
treedaba63da0ed8bafc80a42412e669a9e6a56cdc40 /libobjc/Makefile.in
parent61d3d7878fc0eb955a1483f88673f0358ee4a092 (diff)
downloadgcc-fa7570777056f4866615e0eed9d0b2af725fdabb.tar.gz
* Makefile.in (CC1OBJ): Define in terms of CC.
(runtime-info.h): Use. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26618 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libobjc/Makefile.in')
-rw-r--r--libobjc/Makefile.in12
1 files changed, 10 insertions, 2 deletions
diff --git a/libobjc/Makefile.in b/libobjc/Makefile.in
index cc56ae0b91d..3bc11dc9427 100644
--- a/libobjc/Makefile.in
+++ b/libobjc/Makefile.in
@@ -62,6 +62,14 @@ CC = @CC@
CFLAGS = @CFLAGS@
ALL_CFLAGS = -I. -I$(srcdir) $(CPPFLAGS) $(DEFS) $(CFLAGS) -DIN_GCC
+#
+# Define the cc1obj in terms of the CC that is passed on from higher
+# level make. This is needed to make sure we can create runtime-info.h
+# when doing canadian cross builds where running ../../gcc/cc1obj
+# does not make any sense.
+#
+CC1OBJ = `$(CC) -print-prog-name=cc1obj`
+
INCLUDES = -I$(srcdir)/objc -I$(srcdir)/$(MULTISRCTOP)../gcc \
-I$(srcdir)/$(MULTISRCTOP)../gcc/config -I$(MULTIBUILDTOP)../../gcc \
-I$(srcdir)/$(MULTISRCTOP)../include
@@ -118,10 +126,10 @@ OBJS_GC = archive_gc.o class_gc.o encoding_gc.o gc_gc.o hash_gc.o \
sarray_gc.o selector_gc.o sendmsg_gc.o thr_gc.o \
$(OBJC_THREAD_FILE)_gc.o
-runtime-info.h: $(MULTIBUILDTOP)../../gcc/cc1obj
+runtime-info.h:
echo "" > tmp-runtime
echo "/* This file is automatically generated */" > $@
- $(MULTIBUILDTOP)../../gcc/cc1obj -print-objc-runtime-info tmp-runtime >> $@
+ $(CC1OBJ) -print-objc-runtime-info tmp-runtime >> $@
rm -f tmp-runtime
archive_gc.o: archive.c