Commit 58fcad66 authored by Maxime Perrotin's avatar Maxime Perrotin

Workaround Debian GNAT bug with 64bits

Explicit --target=x86_64-linux seems to be necessary and to work only
with Debian 64 bits. without it, compilation fails.
parent f9e8b6ff
UNAME := $(shell uname)
ARCH := $(shell getconf LONG_BIT)
DEBIAN := $(shell uname -a | grep Debian)
CC=gcc
exec = buildsupport
......@@ -27,7 +28,7 @@ ifeq ($(UNAME), Linux)
fi ; \
fi
endif
[ $(ARCH) == 64 ] && EXTRAFLAG="--target=x86_64-linux" ; \
@[ "$(DEBIAN)" != "" ] && [ $(ARCH) == 64 ] && EXTRAFLAG="--target=x86_64-linux" ; \
ADA_PROJECT_PATH=`ocarina-config --prefix`/lib/gnat:$$ADA_PROJECT_PATH \
$(gnatpath)gprbuild -x -g $(exec) -p -P buildsupport.gpr -XBUILD="debug" $$EXTRAFLAG
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment