diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2021-10-12 22:59:25 +0200 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2021-10-12 22:59:41 +0200 |
commit | 41a142b4a90546124996e732aa305b3984b6189b (patch) | |
tree | 9800f5049adc41d1ab07593feb810d269d08c824 /www-apache | |
parent | app-benchmarks/stress-ng: fix README (diff) | |
download | gentoo-41a142b4a90546124996e732aa305b3984b6189b.tar.gz gentoo-41a142b4a90546124996e732aa305b3984b6189b.tar.bz2 gentoo-41a142b4a90546124996e732aa305b3984b6189b.zip |
www-apache/mod_jk: fix linker
Build systems passes CFLAGS to linker and prefixes them all with '-Wl,'
which will always cause the linker to fail with unknown options.
Closes: https://bugs.gentoo.org/817896
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'www-apache')
-rw-r--r-- | www-apache/mod_jk/mod_jk-1.2.48.ebuild | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/www-apache/mod_jk/mod_jk-1.2.48.ebuild b/www-apache/mod_jk/mod_jk-1.2.48.ebuild index f84c81d573c1..f731284a89ec 100644 --- a/www-apache/mod_jk/mod_jk-1.2.48.ebuild +++ b/www-apache/mod_jk/mod_jk-1.2.48.ebuild @@ -5,7 +5,7 @@ EAPI=7 MY_P="tomcat-connectors-${PV#-*}-src" -inherit apache-module +inherit apache-module autotools DESCRIPTION="Provides an AJP Apache2-JK-connector for the Tomcat servlet engine" HOMEPAGE="https://tomcat.apache.org/connectors-doc/" @@ -36,6 +36,10 @@ pkg_setup() { src_prepare() { default + # Don't add '-Wl,' as prefix for CFLAGS, as linker will fail + sed -e '/JK_PREFIX_IF_MISSING/d' -i configure.ac || die + eautoreconf + # Adjust confpath and logpath for Gentoo local logs_path="/var/log/apache2" sed -e "s|conf|${APACHE_CONFDIR}|g" -e "s|logs|${logs_path}|g" -i ../conf/httpd-jk.conf || die |