diff options
author | Daniel Linjama <daniel@dev.linjama.com> | 2022-04-07 15:30:44 +0300 |
---|---|---|
committer | Daniel Wagner <wagi@monom.org> | 2022-04-08 09:18:21 +0200 |
commit | a18acc883b7312d425eb0565e5f2c4d5235f2182 (patch) | |
tree | 421c023c42c5c348e40210e1f8f82332ec983df0 | |
parent | cb87ddd2f5905782b45c0e46277fcf7f32de16af (diff) | |
download | connman-a18acc883b7312d425eb0565e5f2c4d5235f2182.tar.gz |
build: Support configurable run dir with RUNSTATEDIR
Add configurable $(runstatedir) to CFLAGS as RUNSTATEDIR
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | Makefile.plugins | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 15178eca..c108b8f3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -243,6 +243,7 @@ AM_CFLAGS = @DBUS_CFLAGS@ @GLIB_CFLAGS@ \ -DSCRIPTDIR=\""$(build_scriptdir)"\" \ -DSTORAGEDIR=\""$(storagedir)\"" \ -DVPN_STORAGEDIR=\""$(vpn_storagedir)\"" \ + -DRUNSTATEDIR=\""$(runstatedir)"\" \ -DCONFIGDIR=\""$(configdir)\"" if VPN @@ -275,6 +276,7 @@ vpn_connman_vpnd_CFLAGS = @DBUS_CFLAGS@ @GLIB_CFLAGS@ \ -DSCRIPTDIR=\""$(build_scriptdir)"\" \ -DSTORAGEDIR=\""$(storagedir)\"" \ -DVPN_STORAGEDIR=\""$(vpn_storagedir)\"" \ + -DRUNSTATEDIR=\""$(runstatedir)"\" \ -DCONFIGDIR=\""$(configdir)\"" \ -I$(builddir)/vpn diff --git a/Makefile.plugins b/Makefile.plugins index 8e323617..bd5049ec 100644 --- a/Makefile.plugins +++ b/Makefile.plugins @@ -138,6 +138,7 @@ vpn_plugin_objects += $(plugins_vpnc_la_OBJECTS) vpn_plugins_vpnc_la_SOURCES = vpn/plugins/vpnc.c vpn_plugins_vpnc_la_CFLAGS = $(plugin_cflags) -DVPNC=\"@VPNC@\" \ -DVPN_STATEDIR=\""$(vpn_statedir)"\" \ + -DRUNSTATEDIR=\""$(runstatedir)"\" \ -DSCRIPTDIR=\""$(build_scriptdir)"\" vpn_plugins_vpnc_la_LDFLAGS = $(plugin_ldflags) endif |