File tree Expand file tree Collapse file tree 2 files changed +61
-0
lines changed Expand file tree Collapse file tree 2 files changed +61
-0
lines changed Original file line number Diff line number Diff line change 1+ prefix=/usr
2+ exec_prefix=/usr
3+ libdir=@LIBDIR@
4+ includedir=/usr/include
5+
6+ Name: libunwind
7+ Description: libunwind base library
8+ Version: @VERSION@
9+ Libs: -lunwind
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ #
3+ # Wrapper script for llvm-config. Supplies the right environment variables
4+ # for the target and delegates to the native llvm-config for anything else. This
5+ # is needed because arguments like --ldflags, --cxxflags, etc. are set by the
6+ # native compile rather than the target compile.
7+ #
8+ SCRIPT_DIR=" $( dirname " $( readlink -f " $0 " ) " ) "
9+ NEXT_LLVM_CONFIG=" $( which -a llvm-config | sed -n 2p) "
10+ export YOCTO_ALTERNATE_EXE_PATH=" ${YOCTO_ALTERNATE_EXE_PATH:= " $( readlink -f " $SCRIPT_DIR /../llvm-config" ) " } "
11+ if [ -n " $( echo $base_libdir | sed -n ' /lib64/p' ) " ]; then
12+ export YOCTO_ALTERNATE_LIBDIR=" ${YOCTO_ALTERNATE_LIBDIR:= " /lib64" } "
13+ else
14+ export YOCTO_ALTERNATE_LIBDIR=" ${YOCTO_ALTERNATE_LIBDIR:= " /lib" } "
15+ fi
16+ if [[ $# == 0 ]]; then
17+ exec " $NEXT_LLVM_CONFIG "
18+ fi
19+
20+ remain=" "
21+ output=" "
22+ for arg in " $@ " ; do
23+ case " $arg " in
24+ --cppflags)
25+ output=" ${output} ${CPPFLAGS} "
26+ ;;
27+ --cflags)
28+ output=" ${output} ${CFLAGS} "
29+ ;;
30+ --cxxflags)
31+ output=" ${output} ${CXXFLAGS} "
32+ ;;
33+ --ldflags)
34+ output=" ${output} ${LDFLAGS} "
35+ ;;
36+ --shared-mode)
37+ output=" ${output} shared"
38+ ;;
39+ --link-shared)
40+ break
41+ ;;
42+ * )
43+ remain=" ${remain} ${arg} "
44+ ;;
45+ esac
46+ done
47+
48+ if [ " ${remain} " != " " ]; then
49+ output=" ${output} " $( " $NEXT_LLVM_CONFIG " ${remain} )
50+ fi
51+
52+ echo " ${output} "
You can’t perform that action at this time.
0 commit comments