1 --- FreeImage/Makefile.fip Tue Mar 10 09:03:56 2015
2 +++ FreeImage/Makefile_.fip Tue May 24 00:33:23 2022
4 MODULES := $(MODULES:.cpp=.o)
5 CFLAGS ?= -O3 -fPIC -fexceptions -fvisibility=hidden
7 -CFLAGS += -DOPJ_STATIC
8 +override CFLAGS += -DOPJ_STATIC
11 +override CFLAGS += -DNO_LCMS
13 -CFLAGS += -DDISABLE_PERF_MEASUREMENT -D__ANSI__
15 +override CFLAGS += -DDISABLE_PERF_MEASUREMENT -D__ANSI__
16 +override CFLAGS += $(INCLUDE)
17 CXXFLAGS ?= -O3 -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy
19 -CXXFLAGS += -D__ANSI__
20 -CXXFLAGS += $(INCLUDE)
21 +override CXXFLAGS += -D__ANSI__
22 +override CXXFLAGS += $(INCLUDE)
24 +override LDFLAGS += -LDist -lfreeimage-$(VER_MAJOR).$(VER_MINOR)
26 ifeq ($(shell sh -c 'uname -m 2>/dev/null || echo not'),x86_64)
29 + override CFLAGS += -fPIC
30 + override CXXFLAGS += -fPIC
33 TARGET = freeimageplus
37 $(SHAREDLIB): $(MODULES)
38 - $(CC) -s -shared -Wl,-soname,$(VERLIBNAME) $(LDFLAGS) -o $@ $(MODULES) $(LIBRARIES)
39 + $(CC) -shared -Wl,-soname,$(VERLIBNAME) -o $@ $(MODULES) $(LIBRARIES) $(LDFLAGS)
42 install -d $(INCDIR) $(INSTALLDIR)