ports/162912: [patch] lang/tcl86: unbreak build with clang
Jan Beich
jbeich at tormail.net
Mon Nov 28 05:50:09 UTC 2011
>Number: 162912
>Category: ports
>Synopsis: [patch] lang/tcl86: unbreak build with clang
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Nov 28 05:50:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Jan Beich
>Release: FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
>Description:
merge part of lang/tcl85/files/patch-unix-configure at 1.5 (from 2010/12/09)
clang wants either -soname=libfoo.so.1 or -Wl,-soname,libfoo.so.1,
but not -soname libfoo.so.1.
>How-To-Repeat:
http://pointyhat-west.isc.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp-clang.20111126065358.pointyhat-west/tcl-8.6.b.2.log
$ rm -f libfoo.so.1
$ clang -shared -soname libfoo.so.1 -o libfoo.so.1 /dev/null
clang: error: no such file or directory: 'libfoo.so.1'
Exit 1
>Fix:
--- clang.diff begins here ---
Index: lang/tcl86/files/patch-unix-configure
===================================================================
RCS file: /a/.csup/ports/lang/tcl86/files/patch-unix-configure,v
retrieving revision 1.4
diff -u -p -r1.4 patch-unix-configure
--- lang/tcl86/files/patch-unix-configure 29 Dec 2007 21:38:48 -0000 1.4
+++ lang/tcl86/files/patch-unix-configure 28 Nov 2011 02:12:55 -0000
@@ -39,3 +39,12 @@
TCL_LIB_VERSIONS_OK=nodots
;;
esac
+@@ -7831,7 +7831,7 @@
+ # This configuration from FreeBSD Ports.
+ SHLIB_CFLAGS="-fPIC"
+ SHLIB_LD="${CC} -shared"
+- TCL_SHLIB_LD_EXTRAS="-soname \$@"
++ TCL_SHLIB_LD_EXTRAS="-Wl,-soname,\$@"
+ SHLIB_SUFFIX=".so"
+ DL_OBJS="tclLoadDl.o"
+ DL_LIBS=""
--- clang.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list