freeimage: define TEMP_DIRECTORY for libJPEG

This commit is contained in:
Aditya Alok 2021-08-27 10:41:57 +05:30 committed by Henrik Grimler
parent c0820b2650
commit 86ef8dfe28
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
--- FreeImage/Makefile.gnu 2015-03-10 09:04:00.000000000 +0530
+++ FreeImage-patch/Makefile.gnu 2021-08-27 01:32:16.043999979 +0530
+++ FreeImage-patch/Makefile.gnu 2021-08-27 10:38:11.313999758 +0530
@@ -5,17 +5,20 @@
# General configuration variables:
@ -21,7 +21,7 @@
MODULES := $(MODULES:.cpp=.o)
-CFLAGS ?= -O3 -fPIC -fexceptions -fvisibility=hidden
+CFLAGS ?=
+CFLAGS += -O3 -fPIC -fexceptions -fvisibility=hidden
+CFLAGS += -O3 -fPIC -fexceptions -fvisibility=hidden -DTEMP_DIRECTORY=@TERMUX_PREFIX@/tmp
# OpenJPEG
CFLAGS += -DOPJ_STATIC
# LibRaw