File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -6,18 +6,22 @@ PKG_CPPFLAGS = -I${RWINLIB}/include -I${RWINLIB}/include/leptonica -fvisibility=
6
6
PKG_LIBS = -L${RWINLIB}/lib${subst gcc,,${COMPILED_BY}}${R_ARCH} \
7
7
-L${RWINLIB}/lib \
8
8
-Wl,--whole-archive \
9
- -ltesseract -lleptonica \
9
+ -ltesseract \
10
10
-Wl,--no-whole-archive \
11
- -ltiff -lopenjp2 -lwebp -lsharpyuv -ljpeg -lgif -lpng16 -lz \
12
- -lws2_32 \
11
+ -lleptonica \
12
+ -ltiff -lopenjp2 -lwebp -lwebpmux -lwebpdemux -lsharpyuv -ljpeg -lgif -lpng16 -lz \
13
+ -lws2_32 -lgdi32 \
13
14
-Wl,--exclude-all-symbols \
14
15
-static-libgcc -static-libstdc++
15
16
16
- # For R 4.5.0 compatibility
17
+ # For R 4.5.0 compatibility - using --version-script for symbol control
17
18
ifeq ($(shell ${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe -e 'cat(as.numeric(R.version$$major) + as.numeric(R.version$$minor)/10)'),4.5)
18
19
PKG_LIBS += -Wl,--version-script=../tools/exports.map
19
20
endif
20
21
22
+ # Set C++11 standard as required by Tesseract
23
+ CXX_STD = CXX11
24
+
21
25
# Compile
22
26
all: clean winlibs exports.map
23
27
@@ -30,8 +34,8 @@ exports.map: clean
30
34
winlibs:
31
35
mkdir -p ../inst
32
36
"${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" "../tools/winlibs.R" ${VERSION}
33
- cp -Rf ../windows/tessdata ../inst/
34
- cp -Rf ${RWINLIB}/share/tessdata ../inst/
37
+ cp -Rf ../windows/tessdata ../inst/ || true
38
+ cp -Rf ${RWINLIB}/share/tessdata ../inst/ || true
35
39
36
40
$(SHLIB): $(OBJECTS)
37
41
You can’t perform that action at this time.
0 commit comments