mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
f30e6ff283
Bundled libintl did not support linking to internal static libraries (libmc in our case): directly specified static libraries are not pulled by libtool and are not usable for dynamic libraries as PIC-related flags are not passed for compilation. This renders bundled libintl library unusable. The change drops libintl bundling support and always relies on external libintl (or falls back to disabled NLS). On a related note gettext-0.20 drops support for bundling or libintl and this change will ease migration to newer version. The change is tested on x86_64-gentoo-linux-musl: mc builds and links all tests successfully. A few tests fail for lack of NLS support. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
78 lines
1.4 KiB
Makefile
78 lines
1.4 KiB
Makefile
SUBDIRS = event filehighlight mcconfig search skin tty vfs strutil widget .
|
|
|
|
if ENABLE_MCLIB
|
|
LIB_VERSION=`echo $(LIBMC_VERSION) | \
|
|
tr '.' ' '| \
|
|
while read v1 v2 v3; do echo $$v2':'$$v3':'$$v1; done`
|
|
|
|
AM_LDFLAGS=-no-undefined -version-info $(LIB_VERSION) -release $(LIBMC_RELEASE)
|
|
|
|
lib_LTLIBRARIES = libmc.la
|
|
else
|
|
noinst_LTLIBRARIES = libmc.la
|
|
endif
|
|
|
|
|
|
SUBLIB_includes = \
|
|
event.h event-types.h \
|
|
filehighlight.h \
|
|
mcconfig.h \
|
|
search.h \
|
|
skin.h \
|
|
strescape.h \
|
|
strutil.h \
|
|
widget.h
|
|
|
|
SRC_mc_utils = \
|
|
utilunix.c utilunix.h \
|
|
unixcompat.h \
|
|
util.c util.h
|
|
|
|
|
|
libmc_la_SOURCES = \
|
|
$(SUBLIB_includes) \
|
|
$(SRC_mc_utils) \
|
|
fileloc.h \
|
|
fs.h \
|
|
hook.c hook.h \
|
|
glibcompat.c glibcompat.h \
|
|
global.c global.h \
|
|
keybind.c keybind.h \
|
|
lock.c lock.h \
|
|
serialize.c serialize.h \
|
|
shell.c shell.h \
|
|
stat-size.h \
|
|
timefmt.c timefmt.h \
|
|
timer.c timer.h
|
|
|
|
if USE_MAINTAINER_MODE
|
|
libmc_la_SOURCES += logging.c logging.h
|
|
endif
|
|
|
|
if CHARSET
|
|
libmc_la_SOURCES += charsets.c charsets.h
|
|
endif
|
|
|
|
AM_CPPFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir)
|
|
|
|
libmc_la_LIBADD = \
|
|
event/libmcevent.la \
|
|
filehighlight/libmcfilehighlight.la \
|
|
mcconfig/libmcconfig.la \
|
|
search/libsearch.la \
|
|
strutil/libmcstrutil.la \
|
|
skin/libmcskin.la \
|
|
tty/libmctty.la \
|
|
vfs/libmcvfs.la \
|
|
widget/libmcwidget.la
|
|
|
|
libmc_la_LIBADD += $(MCLIBS) $(SLANGLIB)
|
|
|
|
if HAVE_GMODULE
|
|
libmc_la_LIBADD += $(GMODULE_LIBS)
|
|
else
|
|
libmc_la_LIBADD += $(GLIB_LIBS)
|
|
endif
|
|
|
|
libmc_la_LIBADD += $(PCRE_LIBS)
|