]> git.ipfire.org Git - thirdparty/cups-filters.git/commitdiff
Fix build issues
authornielsenb-jf <nielsenb@jetfuse.net>
Tue, 21 Sep 2021 20:59:28 +0000 (15:59 -0500)
committerGitHub <noreply@github.com>
Tue, 21 Sep 2021 20:59:28 +0000 (22:59 +0200)
See issue #419

Add missing line continuation character in libcupsfilters-la_LIBADD
stanza. This fixes "make[2]: lm: No such file or directory" errors while
building.

Move fontembed library before cupsfilters library, this fixes
"/usr/bin/ld: cannot find -lfontembed" errors during install. This may
just be a workaround for dependency resolving issues elsewhere.

Makefile.am

index bdb4128bfbbd724b7e5728785f28c7cb958fd803..e0e0b11402da46fbfaa1695a8b44fea2403197c1 100644 (file)
@@ -218,6 +218,70 @@ EXTRA_DIST += \
        ppd/test2.ppd \
        ppd/README.md
 
+# =================
+# Fontembed library
+# =================
+pkgfontembedincludedir = $(includedir)/fontembed
+pkgfontembedinclude_DATA = \
+       fontembed/bitset.h \
+       fontembed/embed.h \
+       fontembed/fontfile.h \
+       fontembed/iofn.h \
+       fontembed/sfnt.h
+
+lib_LTLIBRARIES += libfontembed.la
+
+check_PROGRAMS += \
+       test_analyze \
+       test_pdf \
+       test_ps
+TESTS += \
+       test_analyze \
+       test_pdf \
+       test_ps
+
+libfontembed_la_SOURCES = \
+       fontembed/aglfn13.c \
+       fontembed/bitset.h \
+       fontembed/dynstring.c \
+       fontembed/dynstring.h \
+       fontembed/embed.c \
+       fontembed/embed.h \
+       fontembed/embed_sfnt.c \
+       fontembed/embed_sfnt_int.h \
+       fontembed/embed_pdf.c \
+       fontembed/embed_pdf.h \
+       fontembed/embed_pdf_int.h \
+       fontembed/fontfile.c \
+       fontembed/fontfile.h \
+       fontembed/frequent.c \
+       fontembed/frequent.h \
+       fontembed/iofn.h \
+       fontembed/macroman.h \
+       fontembed/sfnt.c \
+       fontembed/sfnt.h \
+       fontembed/sfnt_int.h \
+       fontembed/sfnt_subset.c
+libfontembed_la_LDFLAGS = \
+       -no-undefined \
+       -version-info 1
+
+test_analyze_SOURCES = fontembed/test_analyze.c
+test_analyze_LDADD = libfontembed.la
+
+test_pdf_SOURCES = fontembed/test_pdf.c
+test_pdf_LDADD = libfontembed.la
+
+test_ps_SOURCES = fontembed/test_ps.c
+test_ps_LDADD = libfontembed.la
+
+EXTRA_DIST += \
+       $(pkgfontembedinclude_DATA) \
+       fontembed/README
+
+pkgfilter_PROGRAMS =
+pkgfilterdir = $(CUPS_SERVERBIN)/filter
+
 # ====================
 # CUPS Filters library
 # ====================
@@ -354,7 +418,7 @@ libcupsfilters_la_LIBADD = \
        $(LIBJPEG_LIBS) \
        $(LIBPNG_LIBS) \
        $(TIFF_LIBS) \
-       $(POPPLER_LIBS)
+       $(POPPLER_LIBS) \
        -lm
 libcupsfilters_la_CFLAGS = \
        -I$(srcdir)/ppd/ \
@@ -587,70 +651,6 @@ nodist_pkgbraille_SCRIPTS = \
        filter/braille/filters/cups-braille.sh
 endif
 
-# =================
-# Fontembed library
-# =================
-pkgfontembedincludedir = $(includedir)/fontembed
-pkgfontembedinclude_DATA = \
-       fontembed/bitset.h \
-       fontembed/embed.h \
-       fontembed/fontfile.h \
-       fontembed/iofn.h \
-       fontembed/sfnt.h
-
-lib_LTLIBRARIES += libfontembed.la
-
-check_PROGRAMS += \
-       test_analyze \
-       test_pdf \
-       test_ps
-TESTS += \
-       test_analyze \
-       test_pdf \
-       test_ps
-
-libfontembed_la_SOURCES = \
-       fontembed/aglfn13.c \
-       fontembed/bitset.h \
-       fontembed/dynstring.c \
-       fontembed/dynstring.h \
-       fontembed/embed.c \
-       fontembed/embed.h \
-       fontembed/embed_sfnt.c \
-       fontembed/embed_sfnt_int.h \
-       fontembed/embed_pdf.c \
-       fontembed/embed_pdf.h \
-       fontembed/embed_pdf_int.h \
-       fontembed/fontfile.c \
-       fontembed/fontfile.h \
-       fontembed/frequent.c \
-       fontembed/frequent.h \
-       fontembed/iofn.h \
-       fontembed/macroman.h \
-       fontembed/sfnt.c \
-       fontembed/sfnt.h \
-       fontembed/sfnt_int.h \
-       fontembed/sfnt_subset.c
-libfontembed_la_LDFLAGS = \
-       -no-undefined \
-       -version-info 1
-
-test_analyze_SOURCES = fontembed/test_analyze.c
-test_analyze_LDADD = libfontembed.la
-
-test_pdf_SOURCES = fontembed/test_pdf.c
-test_pdf_LDADD = libfontembed.la
-
-test_ps_SOURCES = fontembed/test_ps.c
-test_ps_LDADD = libfontembed.la
-
-EXTRA_DIST += \
-       $(pkgfontembedinclude_DATA) \
-       fontembed/README
-
-pkgfilter_PROGRAMS =
-pkgfilterdir = $(CUPS_SERVERBIN)/filter
-
 # ==========
 # PDF to PDF 
 # ==========