ports/163316: [patch] graphics/lensfun: respect STRIP
Jan Beich
jbeich at tormail.net
Thu Dec 15 16:00:17 UTC 2011
>Number: 163316
>Category: ports
>Synopsis: [patch] graphics/lensfun: respect STRIP
>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: Thu Dec 15 16:00:15 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Jan Beich
>Release: FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
>Description:
>How-To-Repeat:
$ make install WITH_DEBUG=
$ file /usr/local/lib/liblensfun.so
/usr/local/lib/liblensfun.so: ELF 64-bit LSB shared object, x86-64, version 1 (FreeBSD), dynamically linked, stripped
>Fix:
--- strip.diff begins here ---
Index: graphics/lensfun/Makefile
===================================================================
RCS file: /a/.csup/ports/graphics/lensfun/Makefile,v
retrieving revision 1.8
diff -u -p -r1.8 Makefile
--- graphics/lensfun/Makefile 15 Dec 2011 11:45:10 -0000 1.8
+++ graphics/lensfun/Makefile 15 Dec 2011 15:45:57 -0000
@@ -30,6 +30,7 @@ HAS_CONFIGURE= yes
CONFIGURE_ENV= LD="${CXX}" AR="${AR}"
CONFIGURE_ARGS= --prefix=${PREFIX} --target=${TARGET} --vectorization=SSE
MAKE_ARGS= V=1 # we want to know what's going on during the build
+LDFLAGS+= ${STRIP}
PLIST_SUB+= LIBVERSION=${LIBVERSION}
@@ -39,7 +40,7 @@ post-patch: .SILENT
${REINPLACE_CMD} -e \
's|CONF_LIBDIR)pkgconfig|CONF_LIBDIR)../libdata/pkgconfig|' \
${WRKSRC}/build/tibs/compiler/pkgconfig.mak
- ${REINPLACE_CMD} -e '/-s -O3/d' ${WRKSRC}/build/tibs/compiler/gcc.mak
+ ${REINPLACE_CMD} -e '/-s/d' ${WRKSRC}/build/tibs/compiler/gcc.mak
${REINPLACE_CMD} -e '/GROUPS/s| DOCS||' ${WRKSRC}/build/tibs/rules.mak
post-install:
--- strip.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list