File: fix-configure-gcc14.patch

package info (click to toggle)
unicon 3.0.4%2Bdfsg1-7.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,160 kB
  • sloc: ansic: 185,013; cpp: 12,565; makefile: 819; sh: 298
file content (22 lines) | stat: -rw-r--r-- 661 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: fix ftbfs with GCC-14
 This patch only fix error of:
 configure: error: installation or configuration problem:
 C compiler cannot create executables.
Author: xiao sheng wen <atzlinux@sina.com>
Bug-Debian: https://bugs.debian.org/1075605
Forwarded: not-needed
Last-Update: 2024-07-07

---

--- unicon-3.0.4+dfsg1.orig/configure
+++ unicon-3.0.4+dfsg1/configure
@@ -686,7 +686,7 @@ cat > conftest.$ac_ext << EOF
 #line 687 "configure"
 #include "confdefs.h"
 
-main(){return(0);}
+int main(){return(0);}
 EOF
 if { (eval echo configure:692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   ac_cv_prog_cc_works=yes