b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | From: Stefan Fritsch <sf@debian.org> |
| 2 | Subject: Make apu-config not output dbm libs by default. See #622081 |
| 3 | |
| 4 | --- a/apu-config.in |
| 5 | +++ b/apu-config.in |
| 6 | @@ -32,7 +32,8 @@ INCLUDES="@APRUTIL_INCLUDES@" |
| 7 | LDFLAGS="@APRUTIL_LDFLAGS@" |
| 8 | ORIG_LDAP_LIBS="@LDADD_ldap@" |
| 9 | LDAP_LIBS="" |
| 10 | -DBM_LIBS="@LDADD_dbm_db@ @LDADD_dbm_gdbm@ @LDADD_dbm_ndbm@" |
| 11 | +ORIG_DBM_LIBS="@LDADD_dbm_db@ @LDADD_dbm_gdbm@ @LDADD_dbm_ndbm@" |
| 12 | +DBM_LIBS="" |
| 13 | |
| 14 | APRUTIL_LIBNAME="@APRUTIL_LIBNAME@" |
| 15 | |
| 16 | @@ -58,8 +59,8 @@ Known values for OPTION are: |
| 17 | --libs print library information |
| 18 | --avoid-ldap do not include ldap library information with --libs (default on OpenWrt) |
| 19 | --ldap-libs print library information to link with ldap |
| 20 | - --avoid-dbm do not include DBM library information with --libs |
| 21 | - --dbm-libs print additional library information to link with DBM |
| 22 | + --avoid-dbm do not include DBM library information with --libs (default on OpenWrt) |
| 23 | + --dbm-libs print library information to link with DBM |
| 24 | --srcdir print APR-util source directory |
| 25 | --link-ld print link switch(es) for linking to APR-util |
| 26 | --link-libtool print the libtool inputs for linking to APR-util |
| 27 | @@ -125,7 +126,7 @@ while test $# -gt 0; do |
| 28 | flags="$flags $ORIG_LDAP_LIBS" |
| 29 | ;; |
| 30 | --dbm-libs) |
| 31 | - flags="$flags $DBM_LIBS" |
| 32 | + flags="$flags $ORIG_DBM_LIBS" |
| 33 | ;; |
| 34 | --includedir) |
| 35 | if test "$location" = "installed"; then |