diff -Nru a/config.mk.in b/config.mk.in --- a/config.mk.in 2016-12-25 18:36:41.000000000 +0100 +++ b/config.mk.in 2018-11-25 09:59:56.985034064 +0100 @@ -128,7 +128,7 @@ # STRIPFLAG is the option you pass to the above install program to make it # strip unnecessary information out of binaries. -STRIPFLAG = -s +STRIPFLAG = # If you don't want to strip the binaries, just leave it null: #STRIPFLAG = @@ -478,16 +478,17 @@ # The JBIG lossless image compression library (aka JBIG-KIT): -JBIGLIB = $(INTERNAL_JBIGLIB) -JBIGHDR_DIR = $(INTERNAL_JBIGHDR_DIR) +JBIGLIB = "" +JBIGHDR_DIR = "/usr/include" +JBIGLIBS = -ljbig # The Jasper JPEG-2000 image compression library (aka JasPer): -JASPERLIB = $(INTERNAL_JASPERLIB) -JASPERHDR_DIR = $(INTERNAL_JASPERHDR_DIR) +JASPERLIB = "" +JASPERHDR_DIR = "/usr/include/jasper" # JASPERDEPLIBS is the libraries (-l options or file names) on which # The Jasper library depends -- i.e. what you have to link into any # executable that links in the Jasper library. -JASPERDEPLIBS = +JASPERDEPLIBS = -ljasper #JASPERDEPLIBS = -ljpeg # And the Utah Raster Toolkit (aka URT aka RLE) library: diff -Nru a/converter/other/jbig/Makefile b/converter/other/jbig/Makefile --- a/converter/other/jbig/Makefile 2015-05-18 02:06:03.000000000 +0200 +++ b/converter/other/jbig/Makefile 2018-11-25 10:01:31.815686046 +0100 @@ -48,7 +48,7 @@ include $(SRCDIR)/common.mk $(BINARIES): %: %.o $(JBIGLIB_DEP) $(LIBOPT) -$(BINARIES): LDFLAGS_TARGET = $(shell $(LIBOPT) $(JBIGLIB)) +$(BINARIES): LDFLAGS_TARGET = $(shell $(LIBOPT) $(JBIGLIB)) $(JBIGLIBS) $(INTERNAL_JBIGLIB): $(BUILDDIR)/$(SUBDIR)/libjbig FORCE $(MAKE) -f $(SRCDIR)/$(SUBDIR)/libjbig/Makefile \