Cleaned up Makefiles, especially LINKAGE=static vs dynamic

Added LIBSTATIC_SUFFIX instead of hardcoded .a
Changed building of build.c not to be triggered by install
This commit is contained in:
Olof hagsand 2021-09-30 21:36:36 +02:00
parent 3ec0c42959
commit d175720b7e
7 changed files with 169 additions and 129 deletions

13
configure vendored
View file

@ -641,6 +641,7 @@ HAVE_LIBNGHTTP2
HAVE_LIBEVHTP
with_restconf
LINKAGE
LIBSTATIC_SUFFIX
SH_SUFFIX
CLIXON_DEFAULT_CONFIG
INSTALLFLAGS
@ -3359,6 +3360,7 @@ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
# Set to native or fcgi -> compile apps/restconf
HAVE_LIBEVHTP=false
# consider using neutral constant such as with-http1
@ -4557,13 +4559,10 @@ if test "$prefix" = "NONE"; then
prefix=${ac_default_prefix}
fi
if test "$LINKAGE" = "dynamic" ; then
SH_SUFFIX=".so"
elif test "$LINKAGE" = "static" ; then
SH_SUFFIX=".a"
else
as_fn_error $? "No such linkage: ${LINKAGE}" "$LINENO" 5
fi
# Postfix for shared libs
SH_SUFFIX=".so"
# Postfix for static libs
LIBSTATIC_SUFFIX=".a"
# This is for cligen