mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 18:00:10 +01:00
configure: error out when building static XOR shared
Current code warns out in such cases and falls-back to either static or shared. That can be easily missed amongst the volume produced by our configure script. Replace the warning with an error such that one gets direct feedback when they're doing something wrong. Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
da410e6afa
commit
687cf37bbe
1 changed files with 2 additions and 4 deletions
|
|
@ -468,12 +468,10 @@ dnl explicitly requested. If both disabled, set to static since shared
|
|||
dnl was explicitly requested.
|
||||
case "x$enable_static$enable_shared" in
|
||||
xyesyes)
|
||||
AC_MSG_WARN([Cannot build static and shared libraries, disabling shared])
|
||||
enable_shared=no
|
||||
AC_MSG_ERROR([Cannot enable both static and shared. Building using --enable-shared is strongly recommended])
|
||||
;;
|
||||
xnono)
|
||||
AC_MSG_WARN([Cannot disable both static and shared libraries, enabling shared])
|
||||
enable_shared=yes
|
||||
AC_MSG_ERROR([Cannot disable both static and shared. Building using --enable-shared is strongly recommended])
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue