File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,9 @@ build_cmake freetype "${FREETYPE_VERSION}" "${FREETYPE_EXTRAFLAGS}"
120120
121121if [ ! -e " ${PAWPAW_PREFIX} /lib/pkgconfig/freetype2.pc-e" ]; then
122122 sed -i -e ' s/, libbrotlidec//' " ${PAWPAW_PREFIX} /lib/pkgconfig/freetype2.pc"
123+ if [ " ${MACOS} " -eq 1 ]; then
124+ sed -i -e ' s/Requires: zlib,/Requires:/' " ${PAWPAW_PREFIX} /lib/pkgconfig/freetype2.pc"
125+ fi
123126 touch " ${PAWPAW_PREFIX} /lib/pkgconfig/freetype2.pc-e"
124127fi
125128
Original file line number Diff line number Diff line change @@ -56,6 +56,11 @@ PAWPAW_BUILDDIR="${PAWPAW_DIR}/builds/${PAWPAW_TARGET}"
5656PAWPAW_PREFIX=" ${PAWPAW_DIR} /targets/${PAWPAW_TARGET} "
5757PAWPAW_TMPDIR=" /tmp"
5858
59+ if [ -z " ${PAWPAW_SKIP_LTO} " ] || [ " ${PAWPAW_SKIP_LTO} " -eq 0 ]; then
60+ PAWPAW_BUILDDIR+=" -lto"
61+ PAWPAW_PREFIX+=" -lto"
62+ fi
63+
5964# ---------------------------------------------------------------------------------------------------------------------
6065# build environment
6166
@@ -133,7 +138,10 @@ TARGET_CXXFLAGS="${BUILD_FLAGS} -fvisibility-inlines-hidden"
133138LINK_FLAGS=" -L${PAWPAW_PREFIX} /lib ${BUILD_FLAGS} ${EXTRA_FLAGS} "
134139
135140if [ -z " ${PAWPAW_SKIP_LTO} " ] || [ " ${PAWPAW_SKIP_LTO} " -eq 0 ]; then
136- LINK_FLAGS+=" -Werror=odr -Werror=lto-type-mismatch"
141+ LINK_FLAGS+=" -Werror=odr"
142+ if [ " ${GCC} " -eq 1 ]; then
143+ LINK_FLAGS+=" -Werror=lto-type-mismatch"
144+ fi
137145fi
138146
139147if [ " ${MACOS} " -eq 1 ]; then
You can’t perform that action at this time.
0 commit comments