diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -18,12 +18,12 @@ backtrace_lib= build= build_mode= EXEEXT= -LIBEXT=.so +SOEXT=.so show_help=no progname=$0 -subst_vars="CC GNATMAKE CFLAGS LDFLAGS build srcdir prefix backend libdirsuffix libdirreverse gcc_src_dir llvm_config backtrace_lib build_mode EXEEXT LIBEXT" +subst_vars="CC GNATMAKE CFLAGS LDFLAGS build srcdir prefix backend libdirsuffix libdirreverse gcc_src_dir llvm_config backtrace_lib build_mode EXEEXT SOEXT" # Find srcdir srcdir=`dirname $progname` @@ -173,8 +173,9 @@ fi # Define default file extensions for Windows or Linux-like systems case "$build" in - *mingw*) LIBEXT=".dll"; EXEEXT=".exe";; - *) LIBEXT=".so"; EXEEXT="";; + *mingw*) SOEXT=".dll"; EXEEXT=".exe";; + *darwin*) SOEXT=".dylib"; EXEEXT="";; + *) SOEXT=".so"; EXEEXT="";; esac # Generate config.status @@ -245,6 +246,7 @@ sed -e "s%@COMPILER_GCC@%ghdl1-gcc$EXEEXT%" \ -e "s%@POST_PROCESSOR@%oread-$backend%" \ -e "s%@INSTALL_PREFIX@%$prefix%" \ -e "s%@LIB_PREFIX@%$libdirsuffix%" \ + -e "s%@SOEXT@%$SOEXT%" \ < $srcdir/src/ghdldrv/default_pathes.ads.in > default_pathes.ads exit 0 |