projects
/
openwrt
/
svn-archive
/
packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2a2e96
)
restund: infer SYSROOT from cross cpp, same fix as for "re"
author
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 19 Jan 2012 13:18:08 +0000
(13:18 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 19 Jan 2012 13:18:08 +0000
(13:18 +0000)
SVN-Revision: 29800
net/restund/Makefile
patch
|
blob
|
history
diff --git
a/net/restund/Makefile
b/net/restund/Makefile
index 4c5d97271e4f0104e1ae5bc84be8a76ca5541013..551eac0ff36cc77fab6bd5ba9bd47706bdfc5486 100644
(file)
--- a/
net/restund/Makefile
+++ b/
net/restund/Makefile
@@
-51,7
+51,7
@@
define Build/Compile
CC="$(TARGET_CC)" \
EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
DESTDIR="$(PKG_INSTALL_DIR)" \
- SYSROOT="$
(TOOLCHAIN_DIR
)" \
+ SYSROOT="$
$$$(echo '#include <pthread.h>' | $(TARGET_CROSS)cpp -x c | sed -ne 's,^# [0-9]* \"\(.*\)/include/pthread\.h\".*,\1,p' | head -n1
)" \
SYSROOT_ALT="$(STAGING_DIR)/usr" \
RELEASE=1 \
CROSS_COMPILE="$(TARGET_CROSS)" \