Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit df4274e

Browse files
author
Matthias Koeppe
committed
build/pkgs/{freetype,libgd}/spkg-configure.m4: Add depcheck for gcc
1 parent 5594edd commit df4274e

File tree

2 files changed

+4
-19
lines changed

2 files changed

+4
-19
lines changed

build/pkgs/freetype/spkg-configure.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
SAGE_SPKG_CONFIGURE([freetype], [
2-
SAGE_SPKG_DEPCHECK([libpng], [
2+
SAGE_SPKG_DEPCHECK([gcc libpng], [
33
dnl freetype versions are libtool's ones, cf trac #30014
44
PKG_CHECK_MODULES([FREETYPE], [freetype2 >= 16.1], [], [sage_spkg_install_freetype=yes])
55
])

build/pkgs/libgd/spkg-configure.m4

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
11
SAGE_SPKG_CONFIGURE([libgd], [
2-
AC_REQUIRE([SAGE_SPKG_CONFIGURE_LIBPNG])
3-
AC_REQUIRE([SAGE_SPKG_CONFIGURE_FREETYPE])
4-
AC_MSG_CHECKING([Installing freetype? ])
5-
if test x$sage_spkg_install_freetype = xyes; then
6-
AC_MSG_RESULT([Yes. Install libgd as well.])
7-
sage_spkg_install_libgd=yes
8-
else
9-
dnl do not just rely on libpng being a dependency of freetype
10-
AC_MSG_CHECKING([Installing libpng? ])
11-
if test x$sage_spkg_install_libpng = xyes; then
12-
AC_MSG_RESULT([Yes. Install libgd as well.])
13-
sage_spkg_install_libgd=yes
14-
else
15-
AC_MSG_RESULT([No.])
2+
dnl Trac #31624: Avoid C++ ABI issues
3+
SAGE_SPKG_DEPCHECK([gcc libpng freetype], [
164
PKG_CHECK_MODULES([LIBGD], [gdlib >= 2.1], [], [sage_spkg_install_libgd=yes])
17-
fi
18-
fi
5+
])
196
])
20-
21-

0 commit comments

Comments
 (0)