projects
/
feed
/
telephony.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
214e361
)
re, rem, baresip, restund: use another approach to find the "sysroot", the current...
author
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 6 Feb 2012 10:21:49 +0000
(10:21 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 29 Jan 2014 13:52:19 +0000
(13:52 +0000)
libs/re/Makefile
patch
|
blob
|
history
diff --git
a/libs/re/Makefile
b/libs/re/Makefile
index
e6f9ed4
..
86d3088
100644
(file)
--- a/
libs/re/Makefile
+++ b/
libs/re/Makefile
@@
-35,7
+35,7
@@
define Build/Compile
EXTRA_CFLAGS="$(TARGET_CFLAGS) -DOPENWRT" \
EXTRA_LFLAGS="-lm" \
DESTDIR="$(PKG_INSTALL_DIR)" \
- SYSROOT="$$$$(
echo '#include <pthread.h>' | $(TARGET_CROSS)cpp -x c | sed -ne 's,^# [0-9]* \"\(.*\)/include/pthread\.h\".*,\1,p' | head -n1
)" \
+ SYSROOT="$$$$(
$(FIND) $(TOOLCHAIN_DIR) -path '*/include/pthread.h' | sed -ne '1s#/include/pthread.h##p'
)" \
SYSROOT_ALT="$(STAGING_DIR)/usr" \
RELEASE=1 \
CROSS_COMPILE="$(TARGET_CROSS)" \