svn commit: r501622 - head/devel/fastcrc
Tobias Kortkamp
tobik at FreeBSD.org
Tue May 14 05:49:08 UTC 2019
Author: tobik
Date: Tue May 14 05:49:06 2019
New Revision: 501622
URL: https://svnweb.freebsd.org/changeset/ports/501622
Log:
devel/fastcrc: Unbreak build with lld
ld: error: can't create dynamic relocation R_386_32 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in fastcrc.o
>>> referenced by fastcrc.asm
>>> fastcrc.o:(.text+0x854)
http://beefy11.nyi.freebsd.org/data/head-i386-default/p501351_s347498/logs/errors/fastcrc-1.0.log
While here simplify do-install.
Modified:
head/devel/fastcrc/Makefile
Modified: head/devel/fastcrc/Makefile
==============================================================================
--- head/devel/fastcrc/Makefile Tue May 14 05:26:05 2019 (r501621)
+++ head/devel/fastcrc/Makefile Tue May 14 05:49:06 2019 (r501622)
@@ -20,13 +20,13 @@ OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e \
's|gcc|$${CC}| ; \
+ s@^LDOPT=.*@& -z notext@ ; \
/strip/d' ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/fc ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/fastcrc.h ${STAGEDIR}${PREFIX}/include
- ${INSTALL_DATA} ${WRKSRC}/libfcrc.so.1 ${STAGEDIR}${PREFIX}/lib
- @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libfcrc.so.1
+ ${INSTALL_LIB} ${WRKSRC}/libfcrc.so.1 ${STAGEDIR}${PREFIX}/lib
${LN} -fs libfcrc.so.1 ${STAGEDIR}${PREFIX}/lib/libfcrc.so
do-install-DOCS-on:
More information about the svn-ports-head
mailing list