diff --git a/engine/client/image.c b/engine/client/image.c index ff1c416b6..b757fa64f 100644 --- a/engine/client/image.c +++ b/engine/client/image.c @@ -191,7 +191,7 @@ static image_t *imagelist; #ifndef LIBPNG_STATIC #define DYNAMIC_LIBPNG #endif -#ifndef LIBPNG_STATIC +#ifndef LIBJPEG_STATIC #define DYNAMIC_LIBJPEG #endif diff --git a/engine/common/config_fteqw.h b/engine/common/config_fteqw.h index 8a0325555..4d1d45f9a 100644 --- a/engine/common/config_fteqw.h +++ b/engine/common/config_fteqw.h @@ -202,6 +202,12 @@ #ifndef AVAIL_ZLIB //-DNO_ZLIB //disable zlib #endif +#ifdef AVAIL_PNGLIB +-DLINK_PNG +#endif +#ifdef AVAIL_JPEGLIB +-DLINK_JPEG +#endif //-DNO_OPUS //-DNO_SPEEX //disable static speex diff --git a/engine/common/config_wastes.h b/engine/common/config_wastes.h index 4a5575385..140619cde 100644 --- a/engine/common/config_wastes.h +++ b/engine/common/config_wastes.h @@ -201,6 +201,12 @@ #ifndef AVAIL_ZLIB -DNO_ZLIB //disable zlib #endif +#ifdef AVAIL_PNGLIB +-DLINK_PNG +#endif +#ifdef AVAIL_JPEGLIB +-DLINK_JPEG +#endif #ifdef USE_INTERNAL_BULLET //makefile will respond to this by trying to link bullet into the engine itself, instead of as a plugin. -DLINK_INTERNAL_BULLET