Rev 3 | Rev 7 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3 | Rev 4 | ||
---|---|---|---|
Line 195... | Line 195... | ||
195 | # patch bfd/config.bfd |
195 | # patch bfd/config.bfd |
196 | # RATIONALE: insert x86_64 and aarch64 QNX definitions for the BFD library |
196 | # RATIONALE: insert x86_64 and aarch64 QNX definitions for the BFD library |
197 | backup_and_replace "bfd/config.bfd" "${CURRENT_DIR}/bfd.config.bfd" |
197 | backup_and_replace "bfd/config.bfd" "${CURRENT_DIR}/bfd.config.bfd" |
198 | 198 | ||
199 | # patch ld/configure.tgt |
199 | # patch ld/configure.tgt |
200 | # RATIONALE: insert x86_64 and aarch64 QNX definitions for the |
200 | # RATIONALE: insert x86_64 and aarch64 QNX definitions for the GNU linker |
201 | backup_and_replace "ld/configure.tgt" "${CURRENT_DIR}/ld.configure.tgt" |
201 | backup_and_replace "ld/configure.tgt" "${CURRENT_DIR}/ld.configure.tgt" |
- | 202 | ||
- | 203 | # patch ld/emulparams/aarch64nto.sh |
|
- | 204 | # RATIONALE: insert aarch64 QNX particularities for the GNU linker |
|
- | 205 | backup_and_replace "ld/emulparams/aarch64nto.sh" "${CURRENT_DIR}/ld.emulparams.aarch64nto.sh" |
|
- | 206 | ||
- | 207 | # patch ld/emulparams/elf_x86_64nto.sh |
|
- | 208 | # RATIONALE: insert aarch64 QNX particularities for the GNU linker |
|
- | 209 | backup_and_replace "ld/emulparams/elf_x86_64nto.sh" "${CURRENT_DIR}/ld.emulparams.elf_x86_64nto.sh" |
|
202 | 210 | ||
203 | # define the tools to use when compiling intermediary programs on the build host |
211 | # define the tools to use when compiling intermediary programs on the build host |
204 | export AR_FOR_BUILD="/usr/bin/ar" |
212 | export AR_FOR_BUILD="/usr/bin/ar" |
205 | export AS_FOR_BUILD="/usr/bin/as" |
213 | export AS_FOR_BUILD="/usr/bin/as" |
206 | export LD_FOR_BUILD="/usr/bin/ld" |
214 | export LD_FOR_BUILD="/usr/bin/ld" |
Line 228... | Line 236... | ||
228 | cd ".build/${TARGET_TRIPLE}" |
236 | cd ".build/${TARGET_TRIPLE}" |
229 | 237 | ||
230 | # configure and build the GNU binutils. Note that since these are low level tools, we want static binaries as much as possible. |
238 | # configure and build the GNU binutils. Note that since these are low level tools, we want static binaries as much as possible. |
231 | # NOTE: in this context, --host means the machine the built program is expected to RUN on, and --target the machine the built program will FOCUS on. |
239 | # NOTE: in this context, --host means the machine the built program is expected to RUN on, and --target the machine the built program will FOCUS on. |
232 | ../../configure \ |
240 | ../../configure \ |
- | 241 | --with-sysroot="${QNX_TARGET}" \ |
|
233 | --prefix="$(dirname "$(dirname "${QNX_HOST}")")/qnx$(echo "${QNXSDK_VERSION}"|awk -F. '{print $1}')/${BUILD_TARGET_ARCH}/usr" \ |
242 | --prefix="$(dirname "$(dirname "${QNX_HOST}")")/qnx$(echo "${QNXSDK_VERSION}"|awk -F. '{print $1}')/${BUILD_TARGET_ARCH}/usr" \ |
234 | --host="x86_64-pc-nto-qnx${QNXSDK_VERSION}" \ |
243 | --host="x86_64-pc-nto-qnx${QNXSDK_VERSION}" \ |
235 | --target="${TARGET_TRIPLE}" \ |
244 | --target="${TARGET_TRIPLE}" \ |
236 | --disable-shared \ |
245 | --disable-shared \ |
237 | --disable-nls \ |
246 | --disable-nls \ |
Line 239... | Line 248... | ||
239 | --disable-shared-plugins \ |
248 | --disable-shared-plugins \ |
240 | --disable-dynamicplugin \ |
249 | --disable-dynamicplugin \ |
241 | --disable-pie \ |
250 | --disable-pie \ |
242 | --enable-static=yes \ |
251 | --enable-static=yes \ |
243 | --enable-shared=no \ |
252 | --enable-shared=no \ |
- | 253 | --enable-threads \ |
|
- | 254 | --disable-bootstrap \ |
|
244 | --disable-doc || exit 1 |
255 | --disable-doc || exit 1 |
245 | 256 | ||
246 | # and build the whole shit |
257 | # and build the whole shit |
247 | make -j 4 MAKEINFO=/bin/true || exit 1 |
258 | make -j 4 MAKEINFO=/bin/true || exit 1 |
248 | 259 |