aboutsummaryrefslogtreecommitdiffstats
path: root/BUILD.txt
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2016-07-15 06:32:58 +0200
committerTristan Gingold <tgingold@free.fr>2016-07-16 15:06:44 +0200
commite35b24adbb1d0e76c076fe475c8442738b3378be (patch)
treeb65ad8fa33cfad1dbbff863561d6cb964f889801 /BUILD.txt
parent0eadd36bc47b08ad552d325c54f9e3a305c6838c (diff)
downloadghdl-e35b24adbb1d0e76c076fe475c8442738b3378be.tar.gz
ghdl-e35b24adbb1d0e76c076fe475c8442738b3378be.tar.bz2
ghdl-e35b24adbb1d0e76c076fe475c8442738b3378be.zip
Rework gcc build procedure. Add vpi build command.
Diffstat (limited to 'BUILD.txt')
-rw-r--r--BUILD.txt17
1 files changed, 12 insertions, 5 deletions
diff --git a/BUILD.txt b/BUILD.txt
index 00fcda30b..51c6d91d7 100644
--- a/BUILD.txt
+++ b/BUILD.txt
@@ -52,8 +52,9 @@ Building with the gcc backend
You need to download and untar the sources of
gcc version 4.9 [do not modify this line as this is read by scripts].
-First configure ghdl and specify gcc source dir:
-$ ./configure --with-gcc=/path/to/gcc/source/dir
+First configure ghdl, specify gcc source dir and prefix.
+(replace /usr/local by your prefix directory):
+$ ./configure --with-gcc=/path/to/gcc/source/dir --prefix=/usr/local
Then invoke make to copy ghdl sources in the source dir:
$ make copy-sources
@@ -74,18 +75,24 @@ $ make; make install
Then configure gcc. The list of --disable configure options could be
adjusted for your needs. GHDL don't require all these optional
-libraries and disabling them speed-up the build.
+libraries and disabling them speed-up the build. Note the prefix
+directory must be the same as the one used to configure ghdl.
$ mkdir gcc-objs; cd gcc-objs
$ ../gcc-4.9.3/configure --prefix=/usr/local --enable-languages=c,vhdl \
--disable-bootstrap --with-gmp=/usr/local --disable-lto --disable-multilib \
--disable-libssp --disable-libgomp --disable-libquadmath
$ make -j2
-Finally install:
+Install gcc:
$ make install
or if you don't want to install makeinfo:
$ make install MAKEINFO=true
+Build and install vhdl libraries:
+$ cd ..
+$ make ghdllib
+$ make install
+
Building with the llvm backend
******************************
@@ -114,7 +121,7 @@ Once gcc (with ghdl) has been built once, it is possible to work on ghdl
sources tree without copying them in gcc tree. Commands are:
$ make ghdl1-gcc # To build the compiler
$ make ghdl_gcc # To build the driver
-$ make libs.vhdl.gcc # To compile the vhdl libraries
+$ make libs.vhdl.local_gcc # To compile the vhdl libraries
$ make grt-all # To build the ghdl runtime
$ make grt.links # To locally install the ghdl runtime
TODO: gcc object dir