On Sun, Jan 09, 2022 at 08:37:53PM +0100, Omar Polo wrote:
> Woops, during one of the iteration the first -fPIC was accidentally
> dropped
I've already tested and committed this, thanks.
> Index: Makefile
> ===================================================================
> RCS file: /home/cvs/ports/graphics/qr-code-generator/Makefile,v
> retrieving revision 1.3
> diff -u -p -r1.3 Makefile
> --- Makefile 6 Jan 2022 00:07:44 -0000 1.3
> +++ Makefile 9 Jan 2022 19:37:29 -0000
> @@ -29,7 +29,7 @@ SONAME_C = libqrcodegen.so.${LIBqrcodeg
> SONAME_CPP = libqrcodegencpp.so.${LIBqrcodegen_VERSION}
>
> do-build:
> - cd ${WRKSRC}/c && PATH=${PORTPATH} ${CC} ${CFLAGS} -shared \
> + cd ${WRKSRC}/c && PATH=${PORTPATH} ${CC} ${CFLAGS} -shared -fPIC \
> -Wl,-soname,${SONAME_C} -o ${WRKBUILD}/${SONAME_C} qrcodegen.c
> cd ${WRKSRC}/cpp && PATH=${PORTPATH} ${CXX} ${CXXFLAGS} -shared -fPIC \
> -Wl,-soname,${SONAME_CPP} -o ${WRKBUILD}/${SONAME_CPP} qrcodegen.cpp