Skip to content

Commit

Permalink
More cairo details, build LTO stuff in separate dirs
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Dec 11, 2022
1 parent edbeecb commit 1de7448
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions bootstrap-plugins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ build_cmake freetype "${FREETYPE_VERSION}" "${FREETYPE_EXTRAFLAGS}"

if [ ! -e "${PAWPAW_PREFIX}/lib/pkgconfig/freetype2.pc-e" ]; then
sed -i -e 's/, libbrotlidec//' "${PAWPAW_PREFIX}/lib/pkgconfig/freetype2.pc"
if [ "${MACOS}" -eq 1 ]; then
sed -i -e 's/Requires: zlib,/Requires:/' "${PAWPAW_PREFIX}/lib/pkgconfig/freetype2.pc"
fi
touch "${PAWPAW_PREFIX}/lib/pkgconfig/freetype2.pc-e"
fi

Expand Down
10 changes: 9 additions & 1 deletion setup/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ PAWPAW_BUILDDIR="${PAWPAW_DIR}/builds/${PAWPAW_TARGET}"
PAWPAW_PREFIX="${PAWPAW_DIR}/targets/${PAWPAW_TARGET}"
PAWPAW_TMPDIR="/tmp"

if [ -z "${PAWPAW_SKIP_LTO}" ] || [ "${PAWPAW_SKIP_LTO}" -eq 0 ]; then
PAWPAW_BUILDDIR+="-lto"
PAWPAW_PREFIX+="-lto"
fi

# ---------------------------------------------------------------------------------------------------------------------
# build environment

Expand Down Expand Up @@ -133,7 +138,10 @@ TARGET_CXXFLAGS="${BUILD_FLAGS} -fvisibility-inlines-hidden"
LINK_FLAGS="-L${PAWPAW_PREFIX}/lib ${BUILD_FLAGS} ${EXTRA_FLAGS}"

if [ -z "${PAWPAW_SKIP_LTO}" ] || [ "${PAWPAW_SKIP_LTO}" -eq 0 ]; then
LINK_FLAGS+=" -Werror=odr -Werror=lto-type-mismatch"
LINK_FLAGS+=" -Werror=odr"
if [ "${GCC}" -eq 1 ]; then
LINK_FLAGS+=" -Werror=lto-type-mismatch"
fi
fi

if [ "${MACOS}" -eq 1 ]; then
Expand Down

0 comments on commit 1de7448

Please sign in to comment.