Date: Mon, 28 Nov 2011 02:30:45 +0000 From: Jan Beich <jbeich@tormail.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/162915: [patch] graphics/glfw: unbreak build with clang Message-ID: <1RUtze-000NUb-UF@internal.tormail.net> Resent-Message-ID: <201111280550.pAS5oAct060502@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 162915 >Category: ports >Synopsis: [patch] graphics/glfw: 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:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Jan Beich >Release: FreeBSD 10.0-CURRENT amd64 >Organization: >Environment: >Description: 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/glfw-2.7.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: graphics/glfw/Makefile =================================================================== RCS file: /a/.csup/ports/graphics/glfw/Makefile,v retrieving revision 1.14 diff -u -p -r1.14 Makefile --- graphics/glfw/Makefile 18 Oct 2011 13:05:57 -0000 1.14 +++ graphics/glfw/Makefile 28 Nov 2011 02:29:19 -0000 @@ -29,6 +29,7 @@ post-extract: post-patch: @${REINPLACE_CMD} -e \ 's|/usr/X11R6|${X11BASE}| ; \ + /SOFLAGS/s|-soname |-Wl,-soname,| ; \ /CFLAGS_THREAD/s|"-pthread"|"${PTHREAD_CFLAGS}"| ; \ /LFLAGS_THREAD/s|"-pthread"|"${PTHREAD_LIBS}"|' ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} @${REINPLACE_CMD} -e \ --- clang.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1RUtze-000NUb-UF>