From 0cb8a7439cd726fe3b0d41be0657e3468f2239b2 Mon Sep 17 00:00:00 2001 From: John Marino Date: Sat, 27 Aug 2016 06:10:10 +0000 Subject: [PATCH] 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 ";" --- devel/distorm/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/devel/distorm/Makefile b/devel/distorm/Makefile index 23f51b8eb526..428b4bb3ee23 100644 --- a/devel/distorm/Makefile +++ b/devel/distorm/Makefile @@ -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