Browse Source

Build statically

Serj Kalichev 3 months ago
parent
commit
4573917cbb
2 changed files with 6 additions and 6 deletions
  1. 4 2
      bin/module.am
  2. 2 4
      plugins/clish/module.am

+ 4 - 2
bin/module.am

@@ -6,13 +6,15 @@ bin_PROGRAMS += \
 	bin/sigexec
 
 bin_clish_SOURCES = bin/clish.c
+EXTRA_bin_clish_DEPENDENCIES = \
+	@CLISH_PLUGIN_BUILTIN_LIBS@
 bin_clish_LDADD = \
 	libclish.la \
 	libkonf.la \
 	libtinyrl.la \
 	liblub.la \
-	$(LIBOBJS) \
-	@CLISH_PLUGIN_BUILTIN_LIBS@
+	@CLISH_PLUGIN_BUILTIN_LIBS@ \
+	$(LIBOBJS)
 
 bin_konfd_SOURCES = bin/konfd.c
 bin_konfd_LDADD = \

+ 2 - 4
plugins/clish/module.am

@@ -1,4 +1,4 @@
-lib_LTLIBRARIES+= clish_plugin_clish.la
+lib_LTLIBRARIES += clish_plugin_clish.la
 clish_plugin_clish_la_SOURCES =
 clish_plugin_clish_la_DEPENDENCIES = \
 	libclish.la \
@@ -8,9 +8,7 @@ clish_plugin_clish_la_DEPENDENCIES = \
 clish_plugin_clish_la_LIBADD = \
 	$(clish_plugin_clish_la_DEPENDENCIES)
 
-clish_plugin_clish_la_LDFLAGS	 = -avoid-version -module
-#clish_plugin_clish_la_LDFLAGS	 = -avoid-version -module -shared
-#clish_plugin_clish_la_LDFLAGS	+= -export-symbols-regex "^clish_plugin_lua_"
+clish_plugin_clish_la_LDFLAGS = -avoid-version -module
 
 clish_plugin_clish_la_SOURCES += \
 	plugins/clish/builtin_init.c \