aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/gdb/Makefile
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-01-13 02:15:43 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-01-13 02:15:43 +0000
commita60b74b8b67953c8d797a82d238e5f3f38d79b02 (patch)
treeb6e152f004e74359b471b57413eca72696f1abe8 /toolchain/gdb/Makefile
parente99e831300555055dcdcdc7f41237977f0fee82c (diff)
downloadmaster-187ad058-a60b74b8b67953c8d797a82d238e5f3f38d79b02.tar.gz
master-187ad058-a60b74b8b67953c8d797a82d238e5f3f38d79b02.tar.bz2
master-187ad058-a60b74b8b67953c8d797a82d238e5f3f38d79b02.zip
fix gdb compile
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14015 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain/gdb/Makefile')
-rw-r--r--toolchain/gdb/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/toolchain/gdb/Makefile b/toolchain/gdb/Makefile
index e4d8235c62..be3e423a1c 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