Mercurial > octave
comparison configure.ac @ 32335:2b44805fc139
build: Fail early when trying to build without shared libraries (bug #64709).
* configure.ac: Fail early when configured with `--disable-shared`.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Mon, 25 Sep 2023 18:52:36 +0200 |
parents | 2c47affeec43 |
children | 711ebddc86ea |
comparison
equal
deleted
inserted
replaced
32334:46871f9a118e | 32335:2b44805fc139 |
---|---|
611 | 611 |
612 if test $enable_shared = yes; then | 612 if test $enable_shared = yes; then |
613 SHARED_LIBS=yes | 613 SHARED_LIBS=yes |
614 else | 614 else |
615 SHARED_LIBS=no | 615 SHARED_LIBS=no |
616 # Note: Octave doesn't build currently without shared libraries. And it | |
617 # might not work or make sense at all to build static Octave libraries. | |
618 # All existing logic for this use-case is still in place in case | |
619 # someone would like to base on that to build static versions of the | |
620 # libraries. | |
621 AC_MSG_ERROR([Building shared libraries is required!]) | |
616 fi | 622 fi |
617 AC_SUBST(SHARED_LIBS) | 623 AC_SUBST(SHARED_LIBS) |
618 | 624 |
619 if test $enable_static = yes; then | 625 if test $enable_static = yes; then |
620 STATIC_LIBS=yes | 626 STATIC_LIBS=yes |