Skip to content

Commit

Permalink
Merge pull request #13 from dozylynx/x64
Browse files Browse the repository at this point in the history
OXT-1477 : Enable building OCaml binaries for x86_64
  • Loading branch information
jean-edouard authored Mar 25, 2019
2 parents 4a3a59b + 79d907c commit 43165ad
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions recipes-devtools/ocaml/ocaml-cross_4.04.2.bb
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ PN = "ocaml-cross-${TARGET_ARCH}"
COMPATIBLE_HOST = "(i.86|x86_64).*-linux"
COMPATIBLE_MACHINE = "(-)"
COMPATIBLE_MACHINE_x86 = "(.*)"
#COMPATIBLE_MACHINE_x86-64 = "(.*)"
COMPATIBLE_MACHINE_x86-64 = "(.*)"

# Speed things up since we assume host is of the same architecture.
# Current OpenXT target are linux 32 bit.
do_configure_x86() {
./configure -no-curses \
-no-graph \
Expand All @@ -40,6 +39,21 @@ do_configure_x86() {
${EXTRA_CONF}
}

do_configure_x86-64() {
./configure -no-curses \
-no-graph \
-prefix ${prefix} \
-bindir ${bindir} \
-libdir ${libdir}/ocaml \
-mandir ${datadir}/man \
-cc "${TARGET_PREFIX}gcc -fPIC --sysroot=${STAGING_DIR_TARGET}" \
-as "${TARGET_PREFIX}as" \
-aspp "${TARGET_PREFIX}gcc -c -fPIC" \
-host ${TARGET_SYS} \
-partialld "${TARGET_PREFIX}ld -r" \
${EXTRA_CONF}
}

# Ignore how TARGET_ARCH is computed.
TARGET_ARCH[vardepvalue] = "${TARGET_ARCH}"

Expand Down

0 comments on commit 43165ad

Please sign in to comment.