Skip to content

Commit

Permalink
fixup __getauxval 2
Browse files Browse the repository at this point in the history
  • Loading branch information
thehajime committed Jul 10, 2024
1 parent 4cd9bc7 commit b8cbe3d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ case ${TARGET} in
export HOST_CFLAGS="-Wno-error-implicit-function-declaration"
EXTRA_AFLAGS="-mmacosx-version-min=10.7.0"
;;
aarch64-*-linux*)
EXTRA_CFLAGS="-mno-outline-atomics"
;;
*)
OS=unknown
esac
Expand Down Expand Up @@ -640,10 +643,6 @@ else
-e "s/--netbsd/-rumprun-${RUMP_KERNEL}/" -e "s/-eabihf//")
COMPILER_FLAGS="-fno-stack-protector ${EXTRA_CFLAGS}"
COMPILER_FLAGS="$(echo ${COMPILER_FLAGS} | sed 's/--sysroot=[^ ]*//g')"
MACHINE=$(${CC:-gcc} -dumpmachine)
if [ ${MACHINE} = "aarch64-linux-gnu" ] ; then
appendvar COMPILER_FLAGS -mno-outline-atomics
fi
[ -f ${OUTDIR}/lib/crt0.o ] && appendvar STARTFILE "${OUTDIR}/lib/crt0.o"
[ -f ${OUTDIR}/lib/crt1.o ] && appendvar STARTFILE "${OUTDIR}/lib/crt1.o"
appendvar STARTFILE "${OUTDIR}/lib/crti.o"
Expand Down

0 comments on commit b8cbe3d

Please sign in to comment.