diff --git a/Makefile b/Makefile index 469d1dfdf1..2d9c53294b 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ HEADERS = $(wildcard */*.h) $(wildcard *.h) LIBS = -lm DEFINES = -DHAVE_CONFIG_H -ifneq ($(findstring Darwin,$(shell uname -a)),) +ifneq ($(findstring Darwin,$(OS)),) OSX := 1 LIBS += -framework AppKit else @@ -18,7 +18,7 @@ endif BSD_LOCAL_INC = DYLIB_LIB = -ldl -ifneq ($(findstring BSD,$(shell uname -a)),) +ifneq ($(findstring BSD,$(OS)),) BSD_LOCAL_INC = -I/usr/local/include DYLIB_LIB = -lc endif diff --git a/qb/config.libs.sh b/qb/config.libs.sh index 01a5bbccbf..0955dd98b3 100644 --- a/qb/config.libs.sh +++ b/qb/config.libs.sh @@ -73,6 +73,8 @@ check_lib STRL -lc strlcpy check_pkgconf PYTHON python3 +add_define_make OS $OS + # Creates config.mk and config.h. VARS="ALSA OSS OSS_BSD OSS_LIB AL RSOUND ROAR JACK PULSE SDL DYLIB CG XML SDL_IMAGE DYNAMIC FFMPEG AVCODEC AVFORMAT AVUTIL SWSCALE SRC CONFIGFILE FREETYPE XVIDEO NETPLAY FBO STRL PYTHON" create_config_make config.mk $VARS