diff options
author | Tristan Gingold <tgingold@free.fr> | 2018-03-21 18:33:54 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2018-03-21 18:33:54 +0100 |
commit | ffca448651c5b7b0fc5fe6bdbbcf1e0dc13419e1 (patch) | |
tree | aecf5e76a63c2906fa4ad2041505b740b0780209 /configure | |
parent | 047de40c7799e4186b16bd1ad2c6eb17a7cf0098 (diff) | |
download | ghdl-ffca448651c5b7b0fc5fe6bdbbcf1e0dc13419e1.tar.gz ghdl-ffca448651c5b7b0fc5fe6bdbbcf1e0dc13419e1.tar.bz2 ghdl-ffca448651c5b7b0fc5fe6bdbbcf1e0dc13419e1.zip |
Set a version to libghdl, put version in configure.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -3,6 +3,13 @@ # configure script for ghdl (c) 2014 Tristan Gingold # +# Current version. This is the only place where the version is written. +# Any code that needs version should read it directly or indirectly from this +# place. +# Note the absence of spaces and the quotes. +# Suffix "-dev" is used during development. +ghdl_version="0.36-dev" + backend=mcode CC=${CC:-gcc} CXX=${CXX:-clang++} @@ -30,7 +37,7 @@ PIC_FLAGS=-fPIC show_help=no progname=$0 -subst_vars="CC CXX GNATMAKE MAKE CFLAGS LDFLAGS build srcdir abs_srcdir prefix backend libdirsuffix libdirreverse gcc_src_dir llvm_config llvm_be backtrace_lib build_mode EXEEXT SOEXT PIC_FLAGS default_pie enable_werror enable_checks enable_openieee enable_python" +subst_vars="CC CXX GNATMAKE MAKE CFLAGS LDFLAGS build srcdir abs_srcdir prefix backend libdirsuffix libdirreverse gcc_src_dir llvm_config llvm_be backtrace_lib build_mode EXEEXT SOEXT PIC_FLAGS default_pie enable_werror enable_checks enable_openieee enable_python libghdl_version ghdl_version" # Find srcdir srcdir=`dirname $progname` @@ -247,6 +254,9 @@ case "$build" in *) SOEXT=".so"; EXEEXT=""; PIC_FLAGS="-fPIC";; esac +# Define libghdl_version +libghdl_version=`echo $ghdl_version | sed -e 's/[-.]/_/g'` + # Check if gcc was configured with --enable-default-pie. In that case -fPIC # should be added. if gcc -v 2>&1 | grep -q enable-default-pie; then |