5 : ${NETBSDSRCDIR=${PWD}/../..}
6 : ${LLVMSRCDIR=${NETBSDSRCDIR}/external/bsd/llvm/dist}
9 : ${OBJ_LLVM=${NETBSDSRCDIR}/../obj_llvm.${ARCH}}
10 : ${OBJ=${NETBSDSRCDIR}/../obj.${ARCH}}
11 : ${CROSS_TOOLS=${OBJ}/"tooldir.`uname -s`-`uname -r`-`uname -m`"/bin}
19 # Retrieve all the GPL sources
21 find .
-name fetch.sh
-exec '{}' \
;
27 ${LLVMSRCDIR}/llvm
/configure \
28 --enable-targets=x86 \
29 --with-c-include-dirs=/usr
/include
/clang-3.4
:/usr
/include \
30 --disable-timestamps \
32 --sysconfdir=/etc
/llvm \
33 --with-clang-srcdir=${LLVMSRCDIR}/clang \
34 --host=i586-elf32-minix \
35 --with-binutils-include=${NETBSDSRCDIR}/external
/gpl
3/binutils
/dist
/include \
36 --disable-debug-symbols \
38 --enable-bindings=none \
39 llvm_cv_gnu_make_command
=make \
40 ac_cv_path_CIRCO
="echo circo" \
41 ac_cv_path_DOT
="echo dot" \
42 ac_cv_path_DOTTY
="echo dotty" \
43 ac_cv_path_FDP
="echo fdp" \
44 ac_cv_path_NEATO
="echo neato" \
45 ac_cv_path_TWOPI
="echo twopi" \
46 ac_cv_path_XDOT
="echo xdot" \
51 # Copy the gold plugin where the NetBSD build system expects it.
52 mkdir
-p ${NETBSDSRCDIR}/minix
/llvm
/bin
/
53 cp ${OBJ_LLVM}/.
/Release
+Asserts
/lib
/libLTO.so
${NETBSDSRCDIR}/minix
/llvm
/bin
/
54 cp ${OBJ_LLVM}/.
/Release
+Asserts
/lib
/LLVMgold.so
${NETBSDSRCDIR}/minix
/llvm
/bin
/
56 # Copy useful LLVM tools
57 mkdir
-p ${CROSS_TOOLS}
58 cp ${OBJ_LLVM}/.
/Release
+Asserts
/bin
/llc
${CROSS_TOOLS}
59 cp ${OBJ_LLVM}/.
/Release
+Asserts
/bin
/opt
${CROSS_TOOLS}
60 cp ${OBJ_LLVM}/.
/Release
+Asserts
/bin
/llvm-
* ${CROSS_TOOLS}
62 # Generate and Install default MINIX passes
63 cd ${NETBSDSRCDIR}/minix
/llvm
/passes
/WeakAliasModuleOverride
66 cd ${NETBSDSRCDIR}/minix
/llvm
/passes
/hello