mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
Add a nasm test for ELF generation
We should probably only test this when targetting x86 arch...
This commit is contained in:
parent
14ed9dd5fc
commit
cb721c5963
12
configure
vendored
12
configure
vendored
@ -760,6 +760,18 @@ if [ $HOST_PLATFORM = "darwin" ]; then
|
||||
HOST_EXTENDED_REGEX_SED="sed -E"
|
||||
fi
|
||||
|
||||
# check if nasm can actually output ELF files
|
||||
# (the stock version in OSX can't)
|
||||
# XXX: should probably only test for x86* arch
|
||||
if [ "$("$HAIKU_NASM" -hf | grep -c ELF'[36][24]\s')" -ne "2" ]; then
|
||||
echo "$HAIKU_NASM cannot generate ELF files. Please install a working version."
|
||||
if [ $HOST_PLATFORM = "darwin" ]; then
|
||||
echo "You can install it from Mac Ports."
|
||||
echo "Mac Ports is available at: http://www.macports.org/"
|
||||
fi
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# create output directory
|
||||
mkdir -p "$buildOutputDir" || exit 1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user