projects
/
openwrt
/
staging
/
wigyori.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ath79: add support for Buffalo BHR-4GRV2
[openwrt/staging/wigyori.git]
/
include
/
toolchain-build.mk
diff --git
a/include/toolchain-build.mk
b/include/toolchain-build.mk
index 08054ac9c65fba7b43ef1e39178b9dcd84db4f5a..883d74d25c8285b1693ef2047d953f7b5f413e6e 100644
(file)
--- a/
include/toolchain-build.mk
+++ b/
include/toolchain-build.mk
@@
-1,4
+1,4
@@
-#
+#
# Copyright (C) 2009 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# Copyright (C) 2009 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
@@
-6,10
+6,20
@@
#
override CONFIG_AUTOREBUILD=
#
override CONFIG_AUTOREBUILD=
+override CONFIG_AUTOREMOVE=
-
STAGING_DIR_HOST
:=$(TOOLCHAIN_DIR)
+
HOST_BUILD_PREFIX
:=$(TOOLCHAIN_DIR)
BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN)
include $(INCLUDE_DIR)/host-build.mk
HOST_STAMP_PREPARED=$(HOST_BUILD_DIR)/.prepared
BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN)
include $(INCLUDE_DIR)/host-build.mk
HOST_STAMP_PREPARED=$(HOST_BUILD_DIR)/.prepared
+
+define FixupLibdir
+ if [ -d $(1)/lib64 -a \! -L $(1)/lib64 ]; then \
+ mkdir -p $(1)/lib; \
+ mv $(1)/lib64/* $(1)/lib/; \
+ rm -rf $(1)/lib64; \
+ fi
+ ln -sf lib $(1)/lib64
+endef