]> granicus.if.org Git - php/commitdiff
Document pkg-config related changes
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 15 Jan 2019 09:13:39 +0000 (10:13 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 15 Jan 2019 09:15:05 +0000 (10:15 +0100)
Creating a separate section in UPGRADING for this, as there are a
lot of these, and there's going to be more of them.

UPGRADING

index be5d6ea0e67755d0516e708c1ad9e6d555876124..586ba8b1402177bdd5f9502b66ce09967c3bbe4a 100644 (file)
--- a/UPGRADING
+++ b/UPGRADING
@@ -12,8 +12,9 @@ PHP 7.4 UPGRADE NOTES
 10. New Global Constants
 11. Changes to INI File Handling
 12. Windows Support
-13. Other Changes
-14. Performance Improvements
+12. Migration to pkg-config
+14. Other Changes
+15. Performance Improvements
 
 
 ========================================
@@ -156,10 +157,6 @@ PHP 7.4 UPGRADE NOTES
 ========================================
 
 - GD:
-  . Freetype detection now relies on pkg-config. The --with-freetype-dir option
-    has been renamed to --with-freetype and no longer accepts a directory.
-    Instead pkg-config environment variables can be used to configure custom paths,
-    see either ./configure --help or follow the instructions in error messages.
   . The behavior of imagecropauto() in the bundled libgd has been synced with
     that of system libgd:
      * IMG_CROP_DEFAULT is no longer falling back to IMG_CROP_SIDES
@@ -251,11 +248,46 @@ PHP 7.4 UPGRADE NOTES
   PHP, so they're a fake.
 
 ========================================
-13. Other Changes
+13. Migration to pkg-config
+========================================
+
+A number of extensions have been migrated to exclusively use pkg-config for
+the detection of library dependencies. Generally, this means that instead of
+using --with-foo-dir=DIR or similar only --with-foo is used. Custom library
+paths can be specified either by adding additional directories to
+PKG_CONFIG_PATH or by explicitly specifying compilation options through
+FOO_CFLAGS and FOO_LIBS.
+
+The following extensions are affected:
+
+- Curl:
+  . --with-curl no longer accepts a directory.
+
+- Intl:
+  . --with-icu-dir has been removed. If --enable-intl is passed, then libicu is
+    always required.
+
+- OpenSSL:
+  . --with-openssl no longer accepts a directory.
+
+- PCRE:
+  . --with-pcre-regex has been removed. Instead --with-external-pcre is provided
+    to opt into using an external PCRE library, rather than the bundled one.
+
+- GD:
+  . --with-png-dir has been removed. libpng is required.
+  . --with-zlib-dir has been removed. zlib is required.
+  . --with-freetype-dir becomes --with-freetype.
+  . --with-jpeg-dir becomes --with-jpeg.
+  . --with-webp-dir becomes --with-webp.
+  . --with-xpm-dir becomes --with-xpm.
+
+========================================
+14. Other Changes
 ========================================
 
 ========================================
-14. Performance Improvements
+15. Performance Improvements
 ========================================
 
 - Core: