svn commit: r420960 - head/devel/distorm
John Marino
marino at FreeBSD.org
Sat Aug 27 06:10:11 UTC 2016
Author: marino
Date: Sat Aug 27 06:10:10 2016
New Revision: 420960
URL: https://svnweb.freebsd.org/changeset/ports/420960
Log:
devel/distorm: fix concurrent building
For a reason I can't figure out, the "clean" target was being called
simultaneously with the build target resulting in a possibility of
deleting object files after they are built but before they are linked
to make a library.
The solution is to remove the "clean" target since it really serves no
purpose in the ports framework (the work area starts clean).
While here, join compound commands with "&&" rather than ";"
Modified:
head/devel/distorm/Makefile
Modified: head/devel/distorm/Makefile
==============================================================================
--- head/devel/distorm/Makefile Sat Aug 27 05:38:08 2016 (r420959)
+++ head/devel/distorm/Makefile Sat Aug 27 06:10:10 2016 (r420960)
@@ -73,10 +73,10 @@ post-install:
.else
do-build:
- @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} \
+ @(cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} \
EXTRAFLAGS="${PICFLAG} -DDISTORM_DYNAMIC" ${MAKE} ${_MAKE_JOBS} \
- ${MAKE_ARGS} clib clean)
- @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} \
+ ${MAKE_ARGS} clib)
+ @(cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} \
EXTRAFLAGS="-DDISTORM_STATIC" ${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} staticlib)
${CC} ${CFLAGS} ${LDFLAGS} -o ${BUILD_WRKSRC}/disasm \
${WRKSRC}/examples/linux/main.c ${BUILD_WRKSRC}/libdistorm3.a
More information about the svn-ports-all
mailing list