mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 23:07:10 -08:00
x11-plugins/asmem: fix configure further with upcoming clang16
autoconf/ seems like a mess, so just adding a rough addition to the earlier direct configure patch. Also replace CC= by tc-export CC pre-configure, or it fails with -native-symlinks if CC is unset (due to old autoconf). Closes: https://bugs.gentoo.org/871279 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
@@ -29,15 +29,17 @@ DEPEND="
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/respect-ldflags.patch
|
||||
"${FILESDIR}"/configure-implicit-func-decls.patch
|
||||
"${FILESDIR}"/configure-implicits.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
tc-export CC # old autoconf
|
||||
|
||||
econf $(use_enable jpeg)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}"
|
||||
emake LDFLAGS="${LDFLAGS}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
https://bugs.gentoo.org/870679
|
||||
|
||||
Generated file and configure.in is written for autoconf 2.13.
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -751,7 +751,7 @@ cat > conftest.$ac_ext << EOF
|
||||
#line 752 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
-main(){return(0);}
|
||||
+int main(){return(0);}
|
||||
EOF
|
||||
if { (eval echo configure:757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
ac_cv_prog_cc_works=yes
|
||||
@@ -0,0 +1,25 @@
|
||||
https://bugs.gentoo.org/870679
|
||||
https://bugs.gentoo.org/871279
|
||||
|
||||
Generated file and configure.in is written for autoconf 2.13.
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -752,5 +752,5 @@
|
||||
#include "confdefs.h"
|
||||
|
||||
-main(){return(0);}
|
||||
+int main(void){return(0);}
|
||||
EOF
|
||||
if { (eval echo configure:757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
@@ -1356,4 +1356,5 @@
|
||||
#include "confdefs.h"
|
||||
|
||||
+void ${x_direct_test_function}(void);
|
||||
int main() {
|
||||
${x_direct_test_function}()
|
||||
@@ -2440,4 +2441,5 @@
|
||||
#include "confdefs.h"
|
||||
|
||||
+void XpmReadFileToPixmap(void);
|
||||
int main() {
|
||||
XpmReadFileToPixmap()
|
||||
Reference in New Issue
Block a user