Commit e982595c authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

Make $(VMOD_LDFLAGS) available in our build too

Refs da91fec9
parent e2e12a11
...@@ -67,6 +67,9 @@ AC_ARG_WITH([dot], ...@@ -67,6 +67,9 @@ AC_ARG_WITH([dot],
fi]) fi])
AM_CONDITIONAL(HAVE_DOT,[test "x$DOT" != "xno"]) AM_CONDITIONAL(HAVE_DOT,[test "x$DOT" != "xno"])
# Define VMOD flags
_VARNISH_VMOD_LDFLAGS
# Check for python. # Check for python.
_VARNISH_CHECK_PYTHON _VARNISH_CHECK_PYTHON
......
...@@ -67,7 +67,7 @@ libvmod_XXX_la_CFLAGS = \\ ...@@ -67,7 +67,7 @@ libvmod_XXX_la_CFLAGS = \\
libvmod_XXX_la_LDFLAGS = \\ libvmod_XXX_la_LDFLAGS = \\
$(AM_LDFLAGS) \\ $(AM_LDFLAGS) \\
-module -export-dynamic -avoid-version -shared \\ $(VMOD_LDFLAGS) \\
@SAN_LDFLAGS@ @SAN_LDFLAGS@
nodist_libvmod_XXX_la_SOURCES = vcc_if.c vcc_if.h nodist_libvmod_XXX_la_SOURCES = vcc_if.c vcc_if.h
......
...@@ -19,7 +19,7 @@ libvmod_blob_la_CFLAGS = \ ...@@ -19,7 +19,7 @@ libvmod_blob_la_CFLAGS = \
libvmod_blob_la_LDFLAGS = \ libvmod_blob_la_LDFLAGS = \
$(AM_LDFLAGS) \ $(AM_LDFLAGS) \
-module -export-dynamic -avoid-version -shared \ $(VMOD_LDFLAGS) \
@SAN_LDFLAGS@ @SAN_LDFLAGS@
nodist_libvmod_blob_la_SOURCES = vcc_if.c vcc_if.h nodist_libvmod_blob_la_SOURCES = vcc_if.c vcc_if.h
......
...@@ -27,7 +27,7 @@ libvmod_debug_la_CFLAGS = \ ...@@ -27,7 +27,7 @@ libvmod_debug_la_CFLAGS = \
libvmod_debug_la_LDFLAGS = \ libvmod_debug_la_LDFLAGS = \
$(AM_LDFLAGS) \ $(AM_LDFLAGS) \
-module -export-dynamic -avoid-version -shared \ $(VMOD_LDFLAGS) \
-rpath /nowhere -rpath /nowhere
@SAN_LDFLAGS@ @SAN_LDFLAGS@
......
...@@ -19,7 +19,7 @@ libvmod_directors_la_CFLAGS = \ ...@@ -19,7 +19,7 @@ libvmod_directors_la_CFLAGS = \
libvmod_directors_la_LDFLAGS = \ libvmod_directors_la_LDFLAGS = \
$(AM_LDFLAGS) \ $(AM_LDFLAGS) \
-module -export-dynamic -avoid-version -shared \ $(VMOD_LDFLAGS) \
@SAN_LDFLAGS@ @SAN_LDFLAGS@
nodist_libvmod_directors_la_SOURCES = vcc_if.c vcc_if.h nodist_libvmod_directors_la_SOURCES = vcc_if.c vcc_if.h
......
...@@ -19,7 +19,7 @@ libvmod_purge_la_CFLAGS = \ ...@@ -19,7 +19,7 @@ libvmod_purge_la_CFLAGS = \
libvmod_purge_la_LDFLAGS = \ libvmod_purge_la_LDFLAGS = \
$(AM_LDFLAGS) \ $(AM_LDFLAGS) \
-module -export-dynamic -avoid-version -shared \ $(VMOD_LDFLAGS) \
@SAN_LDFLAGS@ @SAN_LDFLAGS@
nodist_libvmod_purge_la_SOURCES = vcc_if.c vcc_if.h nodist_libvmod_purge_la_SOURCES = vcc_if.c vcc_if.h
......
...@@ -19,7 +19,7 @@ libvmod_std_la_CFLAGS = \ ...@@ -19,7 +19,7 @@ libvmod_std_la_CFLAGS = \
libvmod_std_la_LDFLAGS = \ libvmod_std_la_LDFLAGS = \
$(AM_LDFLAGS) \ $(AM_LDFLAGS) \
-module -export-dynamic -avoid-version -shared \ $(VMOD_LDFLAGS) \
@SAN_LDFLAGS@ @SAN_LDFLAGS@
nodist_libvmod_std_la_SOURCES = vcc_if.c vcc_if.h nodist_libvmod_std_la_SOURCES = vcc_if.c vcc_if.h
......
...@@ -19,7 +19,7 @@ libvmod_vtc_la_CFLAGS = \ ...@@ -19,7 +19,7 @@ libvmod_vtc_la_CFLAGS = \
libvmod_vtc_la_LDFLAGS = \ libvmod_vtc_la_LDFLAGS = \
$(AM_LDFLAGS) \ $(AM_LDFLAGS) \
-module -export-dynamic -avoid-version -shared \ $(VMOD_LDFLAGS) \
@SAN_LDFLAGS@ @SAN_LDFLAGS@
nodist_libvmod_vtc_la_SOURCES = vcc_if.c vcc_if.h nodist_libvmod_vtc_la_SOURCES = vcc_if.c vcc_if.h
......
...@@ -135,12 +135,22 @@ AC_DEFUN([_VARNISH_CHECK_PYTHON], [ ...@@ -135,12 +135,22 @@ AC_DEFUN([_VARNISH_CHECK_PYTHON], [
]) ])
# _VARNISH_VMOD_LDFLAGS
# ---------------------
AC_DEFUN([_VARNISH_VMOD_LDFLAGS], [
AC_SUBST([VMOD_LDFLAGS],
"-module -export-dynamic -avoid-version -shared")
])
# _VARNISH_VMOD_CONFIG # _VARNISH_VMOD_CONFIG
# -------------------- # --------------------
AC_DEFUN([_VARNISH_VMOD_CONFIG], [ AC_DEFUN([_VARNISH_VMOD_CONFIG], [
AC_REQUIRE([_VARNISH_PKG_CONFIG]) AC_REQUIRE([_VARNISH_PKG_CONFIG])
AC_REQUIRE([_VARNISH_CHECK_DEVEL]) AC_REQUIRE([_VARNISH_CHECK_DEVEL])
AC_REQUIRE([_VARNISH_VMOD_LDFLAGS])
dnl Check the VMOD toolchain dnl Check the VMOD toolchain
AC_REQUIRE([AC_LANG_C]) AC_REQUIRE([AC_LANG_C])
...@@ -175,10 +185,6 @@ AC_DEFUN([_VARNISH_VMOD_CONFIG], [ ...@@ -175,10 +185,6 @@ AC_DEFUN([_VARNISH_VMOD_CONFIG], [
AC_SUBST([am__v_VMODTOOL_]) AC_SUBST([am__v_VMODTOOL_])
AC_SUBST([AM_V_VMODTOOL]) AC_SUBST([AM_V_VMODTOOL])
dnl Define VMODs LDFLAGS
AC_SUBST([VMOD_LDFLAGS],
"-module -export-dynamic -avoid-version -shared")
dnl Substitute an alias for compatibility reasons dnl Substitute an alias for compatibility reasons
AC_SUBST([VMOD_TEST_PATH], [$VARNISH_TEST_PATH]) AC_SUBST([VMOD_TEST_PATH], [$VARNISH_TEST_PATH])
]) ])
......
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