Makefiles: add definition of `LIBS` and `LIBRUN_LIBS`
This commit fixes compilation of librun as of librun commit
5f109d4e079c.
--- a/makelib/config.make Thu Dec 19 00:20:28 2019 +0000
+++ b/makelib/config.make Sun Dec 29 08:00:02 2019 +0000
@@ -100,6 +100,9 @@
-Llib -L/usr/local/lib -L/usr/X11/lib -L/usr/lib \
-Wl,-z,now,-Bsymbolic,-rpath,'$$ORIGIN',-rpath,'$$ORIGIN/lib',-rpath,'$$ORIGIN/../lib'
+# Common libraries to link
+LIBS = -ldl -lm
+
# lex (can be replaced by flex)
LEX=lex
LEX_FLAGS=--noyywrap
@@ -253,7 +256,7 @@
LIBRUN_LD=$(LD)
LIBRUN_CFLAGS=$(CFLAGS)
LIBRUN_OPT=$(OPT)
-LIBRUN_LIBS=$(LIBS)
+LIBRUN_LIBS=-shared $(LIBS)
# compiler to use for class libraries
# the only system, where this is different is (currently) hpux_
@@ -263,7 +266,7 @@
CLASSLIB_LD=ld
CLASSLIB_CFLAGS=$(CFLAGS)
CLASSLIB_OPT=$(OPT)
-CLASSLIB_LIBS=$(LIBS)
+CLASSLIB_LIBS=-shared $(LIBS)
# compiler to use for particular class libraries
LIBBASIC_CC=$(CLASSLIB_CC)