[packages/tcl-udp] - don't force -m64 in CFLAGS, let gcc figure this out

baggins baggins at pld-linux.org
Sat Oct 29 22:05:42 CEST 2016


commit 1b74abf33c3b484a446670c63ce7b804b2ec7c40
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Oct 29 22:05:15 2016 +0200

    - don't force -m64 in CFLAGS, let gcc figure this out

 no-m64.patch | 20 ++++++++++++++++++++
 tcl-udp.spec |  4 ++++
 2 files changed, 24 insertions(+)
---
diff --git a/tcl-udp.spec b/tcl-udp.spec
index f8057e7..9ffe955 100644
--- a/tcl-udp.spec
+++ b/tcl-udp.spec
@@ -7,6 +7,7 @@ Group:		Development/Languages/Tcl
 Source0:	http://downloads.sourceforge.net/tcludp/tcludp-%{version}.tar.gz
 # Source0-md5:	945ea7afd1df9e46090733ffbfd724a1
 Patch0:		%{name}-man.patch
+Patch1:		no-m64.patch
 URL:		http://tcludp.sourceforge.net/
 BuildRequires:	tcl-devel >= 8.4.3
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -18,8 +19,11 @@ in Tcl.
 %prep
 %setup -q -n tcludp
 %patch0 -p1
+%patch1 -p1
 
 %build
+%{__aclocal}
+%{__autoconf}
 %configure \
 	--enable-64bit
 %{__make}
diff --git a/no-m64.patch b/no-m64.patch
new file mode 100644
index 0000000..fac9227
--- /dev/null
+++ b/no-m64.patch
@@ -0,0 +1,20 @@
+--- tcludp/tclconfig/tcl.m4~	2014-05-02 16:41:24.000000000 +0200
++++ tcludp/tclconfig/tcl.m4	2016-10-29 22:03:45.832029466 +0200
+@@ -1553,17 +1553,6 @@
+ 		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'])
+ 	    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
+ 	    AS_IF([test "`uname -m`" = "alpha"], [CFLAGS="$CFLAGS -mieee"])
+-	    AS_IF([test $do64bit = yes], [
+-		AC_CACHE_CHECK([if compiler accepts -m64 flag], tcl_cv_cc_m64, [
+-		    hold_cflags=$CFLAGS
+-		    CFLAGS="$CFLAGS -m64"
+-		    AC_TRY_LINK(,, tcl_cv_cc_m64=yes, tcl_cv_cc_m64=no)
+-		    CFLAGS=$hold_cflags])
+-		AS_IF([test $tcl_cv_cc_m64 = yes], [
+-		    CFLAGS="$CFLAGS -m64"
+-		    do64bit_ok=yes
+-		])
+-	   ])
+ 
+ 	    # The combo of gcc + glibc has a bug related to inlining of
+ 	    # functions like strtod(). The -fno-builtin flag should address
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tcl-udp.git/commitdiff/1b74abf33c3b484a446670c63ce7b804b2ec7c40



More information about the pld-cvs-commit mailing list