Commit efb19703 authored by Karl Wette's avatar Karl Wette

LALAPPS_ENABLE_STATIC_BINARIES(): add --static to ${PKG_CONFIG}

- This will make pkg-config pull in libraries needed for static linking
- Refs #5380
Original: 1f347d374aee5967e71b4614619e706ce4cc5619
parent a86607ba
# lalapps.m4 - lalapps specific autoconf macros # lalapps.m4 - lalapps specific autoconf macros
# #
# serial 15 # serial 16
AC_DEFUN([LALAPPS_ENABLE_CONDOR], [ AC_DEFUN([LALAPPS_ENABLE_CONDOR], [
AC_ARG_ENABLE( AC_ARG_ENABLE(
...@@ -20,6 +20,7 @@ AC_DEFUN([LALAPPS_ENABLE_CONDOR], [ ...@@ -20,6 +20,7 @@ AC_DEFUN([LALAPPS_ENABLE_CONDOR], [
]) ])
AC_DEFUN([LALAPPS_ENABLE_STATIC_BINARIES], [ AC_DEFUN([LALAPPS_ENABLE_STATIC_BINARIES], [
AC_REQUIRE([PKG_PROG_PKG_CONFIG])
AC_REQUIRE([LALAPPS_ENABLE_CONDOR]) AC_REQUIRE([LALAPPS_ENABLE_CONDOR])
AC_REQUIRE([LALSUITE_ENABLE_BOINC]) AC_REQUIRE([LALSUITE_ENABLE_BOINC])
AC_ARG_ENABLE( AC_ARG_ENABLE(
...@@ -41,6 +42,11 @@ AC_DEFUN([LALAPPS_ENABLE_STATIC_BINARIES], [ ...@@ -41,6 +42,11 @@ AC_DEFUN([LALAPPS_ENABLE_STATIC_BINARIES], [
AS_IF([test "x$static_binaries" = "xtrue"], [ AS_IF([test "x$static_binaries" = "xtrue"], [
AC_DISABLE_SHARED AC_DISABLE_SHARED
AC_ENABLE_STATIC AC_ENABLE_STATIC
AS_IF([${PKG_CONFIG} --static --version >/dev/null 2>&1],[
PKG_CONFIG="${PKG_CONFIG} --static"
],[
AC_MSG_WARN([${PKG_CONFIG} does not support --static])
])
]) ])
]) ])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment