diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-01-13 02:15:43 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-01-13 02:15:43 +0000 |
commit | 24f85d414be15c465a4722719d83410247a69fc5 (patch) | |
tree | b6e152f004e74359b471b57413eca72696f1abe8 /toolchain/gdb | |
parent | 2c3b9b3e1c860d53df1742afa5bd50cae05c7393 (diff) |
fix gdb compile
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14015 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain/gdb')
-rw-r--r-- | toolchain/gdb/Makefile | 5 | ||||
-rw-r--r-- | toolchain/gdb/patches/910-missing_header.patch | 11 |
2 files changed, 14 insertions, 2 deletions
diff --git a/toolchain/gdb/Makefile b/toolchain/gdb/Makefile index e4d8235c6..be3e423a1 100644 --- a/toolchain/gdb/Makefile +++ b/toolchain/gdb/Makefile @@ -22,6 +22,7 @@ include $(INCLUDE_DIR)/host-build.mk define Build/Configure (cd $(PKG_BUILD_DIR); \ gdb_cv_func_sigsetjmp=yes \ + CFLAGS="-O2" \ $(PKG_BUILD_DIR)/configure \ --prefix=$(TOOLCHAIN_DIR)/usr \ --build=$(GNU_HOST_NAME) \ @@ -48,8 +49,8 @@ endef define Build/Clean rm -rf \ - $(PKG_BUILD_DIR) - $(TOOLCHAIN_DIR)/usr/bin/$(TARGET_CROSS)gdb + $(PKG_BUILD_DIR) \ + $(TOOLCHAIN_DIR)/usr/bin/$(TARGET_CROSS)gdb \ $(TOOLCHAIN_DIR)/usr/bin/$(GNU_TARGET_NAME)-gdb endef diff --git a/toolchain/gdb/patches/910-missing_header.patch b/toolchain/gdb/patches/910-missing_header.patch new file mode 100644 index 000000000..e3a5cc70b --- /dev/null +++ b/toolchain/gdb/patches/910-missing_header.patch @@ -0,0 +1,11 @@ +--- a/gdb/inferior.h ++++ b/gdb/inferior.h +@@ -21,6 +21,8 @@ + Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ + ++#include <sys/types.h> ++ + #if !defined (INFERIOR_H) + #define INFERIOR_H 1 + |