We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42d5efe commit 7ed5bf9Copy full SHA for 7ed5bf9
3rdparty/CompilerFlags.cmake
@@ -33,9 +33,16 @@ STRING(APPEND CFLAGS " -I${THIRDPARTY_PREFIX}/include")
33
STRING(APPEND CXXFLAGS " -I${THIRDPARTY_PREFIX}/include")
34
STRING(APPEND LDFLAGS " -L${THIRDPARTY_PREFIX}/lib")
35
36
+# Linking shared shared libs against static libs require static libs to have
37
+# Position Independent Code (PIC)
38
+# libpdf2htmlEX.so is a shared lib
39
+STRING(APPEND CFLAGS " -fPIC ")
40
+STRING(APPEND CXXLAGS " -fPIC ")
41
+
42
# march=armv7-a breaks build.
43
# Both Autotools and Meson fail, telling that compiler does not work
44
if(CMAKE_BUILD_TYPE STREQUAL MinSizeRel)
45
STRING(REPLACE "-march=armv7-a" "" CFLAGS "${CFLAGS}")
46
STRING(REPLACE "-march=armv7-a" "" CXXFLAGS "${CXXFLAGS}")
47
endif()
48
0 commit comments