diff options
Diffstat (limited to 'TOOLS')
-rw-r--r-- | TOOLS/vf_dlopen/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/TOOLS/vf_dlopen/Makefile b/TOOLS/vf_dlopen/Makefile index 2fa4e740c2..c3bd4000c4 100644 --- a/TOOLS/vf_dlopen/Makefile +++ b/TOOLS/vf_dlopen/Makefile @@ -5,12 +5,17 @@ OBJECTS = $(patsubst %,%.o,$(FILTERS)) $(COMMON) HEADERS = $(wildcard *.h) OUT = $(patsubst %,%.so,$(FILTERS)) -CFLAGS ?= -Wall -Wextra -O3 -march=native -mtune=native +CFLAGS ?= -Wall -Wextra -O3 -march=native -mtune=native -ffast-math CPPFLAGS += -I../../libmpcodecs CFLAGS += -fPIC LDFLAGS += -shared -fPIC +ifneq ($(LTO),) +CFLAGS += -flto +LDFLAGS += $(CFLAGS) -flto +endif + all: $(OUT) clean: |