1 diff -Naur colm-0.14.7.orig/configure.ac colm-0.14.7/configure.ac
2 --- colm-0.14.7.orig/configure.ac 2021-02-10 07:04:55.000000000 +0100
3 +++ colm-0.14.7/configure.ac 2023-02-07 17:35:08.462977144 +0100
10 -e 's|@CXX@|${CXX}|g' \
13 echo "#define VERSION \"$VERSION\"" > src/version.h
14 echo "#define PUBDATE \"$PUBDATE\"" >> src/version.h
16 +if test "x$enable_static" = "xyes"; then
17 + AC_DEFINE([LINK_STATIC], [1], [Link static lib when invoking C compile and link])
20 +if test "x$enable_shared" = "xyes"; then
21 + AC_DEFINE([LINK_SHARED], [1], [Link shared lib when invoking C compile and link])
26 diff -Naur colm-0.14.7.orig/src/main.cc colm-0.14.7/src/main.cc
27 --- colm-0.14.7.orig/src/main.cc 2020-12-24 00:37:24.000000000 +0100
28 +++ colm-0.14.7/src/main.cc 2023-02-07 17:36:51.313669629 +0100
34 +#if defined(LINK_STATIC)
36 +#elif defined(LINK_SHARED)
39 +# error "must enabled at least one of shared or static libs"
42 binaryFn, intermedFn, srcLocation,
43 srcLocation, location, location );