Fix gdb compile
authorEric Andersen <andersen@codepoet.org>
Fri, 17 Jan 2003 09:30:37 +0000 (09:30 -0000)
committerEric Andersen <andersen@codepoet.org>
Fri, 17 Jan 2003 09:30:37 +0000 (09:30 -0000)
make/gdb.mk
make/gdbserver.mk

index 51eff8bc5414bfd79fc584cbcc2a3cbc07e59ab9..846035257f4aee2400fa02fe19e7ad4308a03517 100644 (file)
@@ -17,7 +17,10 @@ $(GDB_DIR)/.unpacked: $(DL_DIR)/$(GDB_SOURCE)
 
 $(GDB_DIR)/.configured: $(GDB_DIR)/.unpacked
        (cd $(GDB_DIR); rm -rf config.cache; \
-               PATH=$(STAGING_DIR)/bin:$$PATH CC=$(TARGET_CC1) \
+               PATH=$(STAGING_DIR)/bin:$$PATH AR=$(TARGET_CROSS)ar \
+               AS=$(TARGET_CROSS)as LD=$(TARGET_CROSS)ld \
+               RANLIB=$(TARGET_CROSS)ranlib NM=$(TARGET_CROSS)nm \
+               CC=$(TARGET_CC1) \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
                --prefix=/usr \
@@ -30,6 +33,7 @@ $(GDB_DIR)/.configured: $(GDB_DIR)/.unpacked
                --localstatedir=/var \
                --mandir=/usr/man \
                --infodir=/usr/info \
+               --includedir=$(STAGING_DIR)/include \
                --disable-nls \
                --without-uiout --disable-gdbmi \
                --disable-tui --disable-gdbtk --without-x \
index cfc834a200a2de95547976e7ae7a6ed0bba7f99c..575574c9dea1d6c62f2770aaff5dc3e8029c97f2 100644 (file)
@@ -12,7 +12,10 @@ GDB_WDIR:=$(BUILD_DIR)/gdbserver
 
 $(GDB_WDIR)/.configured: $(GDB_DIR)/.unpacked
        (cd $(GDB_WDIR); rm -rf config.cache; \
-               PATH=$(STAGING_DIR)/bin:$$PATH CC=$(TARGET_CC1) \
+               PATH=$(STAGING_DIR)/bin:$$PATH AR=$(TARGET_CROSS)ar \
+               AS=$(TARGET_CROSS)as LD=$(TARGET_CROSS)ld \
+               RANLIB=$(TARGET_CROSS)ranlib NM=$(TARGET_CROSS)nm \
+               CC=$(TARGET_CC1) \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
                --prefix=/usr \
@@ -25,6 +28,7 @@ $(GDB_WDIR)/.configured: $(GDB_DIR)/.unpacked
                --localstatedir=/var \
                --mandir=/usr/man \
                --infodir=/usr/info \
+               --includedir=$(STAGING_DIR)/include \
                --disable-nls \
                --without-uiout --disable-gdbmi \
                --disable-tui --disable-gdbtk --without-x \