Files
cdesktop/cde/config/cf/lnxLib.tmpl
Jon Trulson fa3ad160e4 Fix broken linux builds caused by recent DtHelp/Imakefile jpeg change
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.
2012-08-12 17:31:28 -06:00

48 lines
1008 B
Cheetah

XCOMM $TOG: lnxLib.tmpl /main/7 1998/03/20 14:26:41 mgreess $
/*
* Linux shared library template
*/
/* Linux ELF shared libraries are deficient in link semantics */
#if UseElfFormat
#ifndef FixupLibReferences
#define FixupLibReferences() @@\
XMULIBONLY = -lXmu @@\
XMULIB = $(XMULIBONLY) $(XTOOLLIB) $(XLIB)
#endif
#ifndef XawClientLibs
#define XawClientLibs $(XAWLIB) $(XMULIBONLY) $(XTOOLLIB) $(XLIB)
#endif
#else
#ifndef FixupLibReferences
#define FixupLibReferences() @@\
XMULIB = -lXmu $(XLIB)
#endif
#endif
#ifndef SharedXReqs
# define SharedXReqs $(XTOOLLIB) $(XPLIB) $(XLIB) $(LDPOSTLIBS)
#endif
#ifndef SharedXmReqs
# define SharedXmReqs $(LDPRELIBS) SharedXReqs -lc
#endif
#ifndef SharedTtReqs
# define SharedTtReqs $(LDPRELIBS) SharedXReqs $(CXXLIB)
#endif
#ifndef SharedDtSvcReqs
# define SharedDtSvcReqs $(LDPRELIBS) SharedXReqs $(CXXLIB)
#endif
#ifndef SharedCsaReqs
# define SharedCsaReqs -lXt
#endif
#ifndef SharedDtHelpReqs
# define SharedDtHelpReqs -ljpeg
#endif