A patch from Pascal Stumpf using external jpeg broke linux builds,
since libjpeg needs to be linked in when using a remote jpeg lib.
So, in lnxLib.tmpl, define SharedDtHelpReqs so -ljpeg is used. Also,
in DtHelp/Imakefile, use proper Arch defines so external jpeg libs are
only used on linux, fbsd, and obsd systems.
# define SharedCsaReqs -lXt
#endif
+#ifndef SharedDtHelpReqs
+# define SharedDtHelpReqs -ljpeg
+#endif
#define IHaveSubdirs
#define PassCDebugFlags /**/
+#if defined(LinuxArchitecture) || defined(FreeBSDArchitecture) || defined(OpenBSDArchitecture)
SUBDIRS = il
DONES = il/DONE
+#else
+SUBDIRS = il jpeg
+DONES = il/DONE jpeg/DONE
+#endif
+
EXTRALIBRARYDEPS = $(DONES)
MakeSubdirs($(SUBDIRS))
jpeg/jdinput.o jpeg/jerror.o jpeg/jutils.o
SRCS = $(SRCS1) $(SRCS2) $(CVSRCS) $(LCXSRCS)
+#if defined(LinuxArchitecture) || defined(FreeBSDArchitecture) || defined(OpenBSDArchitecture)
OBJS = $(OBJS1) $(OBJS2) $(CVOBJS) $(LCXOBJS) $(IL_OBJS)
+#else
+OBJS = $(OBJS1) $(OBJS2) $(CVOBJS) $(LCXOBJS) $(IL_OBJS) $(JPEG_OBJS)
+#endif
#include <Library.tmpl>