diff --git a/audio/audio_filters/Makefile b/audio/audio_filters/Makefile index 44b9e38df5..3d3be558fc 100644 --- a/audio/audio_filters/Makefile +++ b/audio/audio_filters/Makefile @@ -42,7 +42,7 @@ ifeq (debug,$(build)) extra_flags += -O0 -g endif -ldflags := -shared -lm -Wl,--version-script=link.T +ldflags := $(LDFLAGS) -shared -lm -Wl,--version-script=link.T ifeq ($(platform), unix) DYLIB = so @@ -57,8 +57,8 @@ endif CC := $(compiler) -Wall CXX := $(subst CC,++,$(compiler)) -std=gnu++0x -Wall -flags := -fPIC $(extra_flags) -I../../libretro-common/include -asflags := -fPIC $(extra_flags) +flags := $(CFLAGS) -fPIC $(extra_flags) -I../../libretro-common/include +asflags := $(ASFLAGS) -fPIC $(extra_flags) objects := ifeq (1,$(use_neon)) diff --git a/gfx/video_filters/Makefile b/gfx/video_filters/Makefile index 0149184592..6989f10494 100644 --- a/gfx/video_filters/Makefile +++ b/gfx/video_filters/Makefile @@ -42,7 +42,7 @@ ifeq (debug,$(build)) extra_flags += -O0 -g endif -ldflags := -shared -Wl,--version-script=link.T +ldflags := $(LDFLAGS) -shared -Wl,--version-script=link.T ifeq ($(platform), unix) DYLIB = so @@ -57,8 +57,8 @@ endif CC := $(compiler) CXX := $(subst CC,++,$(compiler)) -flags := -fPIC $(extra_flags) -I../../libretro-common/include -asflags := -fPIC $(extra_flags) +flags := $(CFLAGS) -fPIC $(extra_flags) -I../../libretro-common/include +asflags := $(ASFLAGS) -fPIC $(extra_flags) objects := flags += -std=c99